Options
All
  • Public
  • Public/Protected
  • All
Menu

HttpResponse

The response to an HTTP request over the HTTP service.

Hierarchy

  • HttpResponse

Index

Constructors

constructor

  • new HttpResponse(status: string, statusCode: number, contentLength: number, headers: Record<string, string[]>, cookies: Record<string, HttpCookie>, body: string): HttpResponse
  • Constructs a new response to an HTTP request.

    Parameters

    • status: string

      the human readable status of the response.

    • statusCode: number

      the status code of the response.

    • contentLength: number

      the content length of the response.

    • headers: Record<string, string[]>

      the response headers.

    • cookies: Record<string, HttpCookie>

      the response cookies.

    • body: string

      the response body.

    Returns HttpResponse

Properties

body

body: string

the response body.

contentLength

contentLength: number

the content length of the response.

cookies

cookies: Record<string, HttpCookie>

the response cookies.

headers

headers: Record<string, string[]>

the response headers.

status

status: string

the human readable status of the response.

statusCode

statusCode: number

the status code of the response.

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc