Skip to main content

Class: WSResponse

ghostly-engine.WSResponse

Holds an HTTP response (a result or an error).

Properties

body

body: string | Buffer | RenderResult[]

The response body (an error message, a Buffer or a RenderResult array).

Defined in

ghostly-engine/src/engine.ts:160


headers

Optional headers: OutgoingHttpHeaders

HTTP headers to send. Includes the Content-Type header.

Defined in

ghostly-engine/src/engine.ts:163


status

status: number

The HTTP status code.

Defined in

ghostly-engine/src/engine.ts:157