Class: TResponse
Constructors
constructor
• new TResponse()
Defined in
packages/disploy/src/http/TResponse.ts:8
Properties
serialized
• serialized: Object
Type declaration
Name | Type |
---|---|
body | any |
headers | Record <string , string > |
status | number |
Defined in
packages/disploy/src/http/TResponse.ts:2
Methods
json
▸ json(body
): TResponse
Parameters
Name | Type |
---|---|
body | any |
Returns
Defined in
packages/disploy/src/http/TResponse.ts:16
setHeader
▸ setHeader(key
, value
): TResponse
Parameters
Name | Type |
---|---|
key | string |
value | string |
Returns
Defined in
packages/disploy/src/http/TResponse.ts:26
status
▸ status(status
): TResponse
Parameters
Name | Type |
---|---|
status | number |
Returns
Defined in
packages/disploy/src/http/TResponse.ts:21