taxum
    Preparing search index...

    Class HttpResponse

    Represents an HTTP response.

    Index

    Constructors

    Properties

    body: Body
    extensions: Extensions
    headers: HeaderMap
    status: StatusCode

    Methods

    • Creates and returns a new instance of the HttpResponse object.

      The new instance contains the same status, headers, body, and extensions as the original.

      This is mainly useful if you have a ReadonlyHttpResponse and need to make modifications to it.

      Returns HttpResponse

    • Writes the response data, including headers and body, to the provided ServerResponse.

      Parameters

      • res: ServerResponse

      Returns Promise<void>