Response
OCP App SDK / Response
Response
Index
Constructors
Properties
Accessors
Constructors
constructor()
Signature
new Response(status?: number, bodyJSON?: any, headers?: Headers): Response;
Parameters
Name | Type |
---|---|
status? | number |
bodyJSON? | any |
headers? | Headers |
Returns
Defined in: src/app/lib/Response.ts:8
Properties
headers
Defined in: src/app/lib/Response.ts:5
status
number
=0
Defined in: src/app/lib/Response.ts:4
Accessors
body
Signature
body(body: null | string): void;
Parameters
Name | Type |
---|---|
body | null | string |
Returns
void
Defined in: src/app/lib/Response.ts:20
Defined in: src/app/lib/Response.ts:20
bodyAsU8Array
Signature
bodyAsU8Array(): undefined | Uint8Array;
Returns
undefined
| Uint8Array
Defined in: src/app/lib/Response.ts:28
Signature
bodyAsU8Array(body: undefined | Uint8Array): void;
Parameters
Name | Type |
---|---|
body | undefined | Uint8Array |
Returns
void
Defined in: src/app/lib/Response.ts:32
Defined in: src/app/lib/Response.ts:28 src/app/lib/Response.ts:32
bodyJSON
Signature
bodyJSON(body: any): void;
Parameters
Name | Type |
---|---|
body | any |
Returns
void
Defined in: src/app/lib/Response.ts:36
Defined in: src/app/lib/Response.ts:36
Updated 29 days ago