Skip to main content

Class: TResponse

Constructors

constructor

new TResponse()

Defined in

packages/disploy/src/http/TResponse.ts:8

Properties

serialized

serialized: Object

Type declaration

NameType
bodyany
headersRecord<string, string>
statusnumber

Defined in

packages/disploy/src/http/TResponse.ts:2

Methods

json

json(body): TResponse

Parameters

NameType
bodyany

Returns

TResponse

Defined in

packages/disploy/src/http/TResponse.ts:16


setHeader

setHeader(key, value): TResponse

Parameters

NameType
keystring
valuestring

Returns

TResponse

Defined in

packages/disploy/src/http/TResponse.ts:26


status

status(status): TResponse

Parameters

NameType
statusnumber

Returns

TResponse

Defined in

packages/disploy/src/http/TResponse.ts:21