Interface WebServerResponse

Index

Properties

Methods

Properties

public headers: { [name: string]: string; }

(): string

Returns

string

public statusCode: number

Methods

public close()

public closeGracefully()

public header(name: string): string

Parameters

  • name: string

Returns

string

public setEncoding(encoding: string)

Parameters

  • encoding: string

public setHeader(name: string, value: string)

Parameters

  • name: string
  • value: string

public write(data: string)

Parameters

  • data: string

public writeHead(statusCode: number, headers?: { [name: string]: string; })

Parameters

  • statusCode: number
  • headers?: { [name: string]: string; } optional