Dev Guide
Dev GuideUser GuidesLegal TermsGitHubDevCommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

OCP App SDK / Response

Response

Index

Constructors

Properties

Accessors

Constructors

constructor()

Signature

new Response(status?: number, bodyJSON?: any, headers?: Headers): Response;

Parameters

NameType
status?number
bodyJSON?any
headers?Headers

Returns

Response

Defined in: src/app/lib/Response.ts:8

Properties

headers

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

NameType
bodynull | 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

NameType
bodyundefined | 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

NameType
bodyany

Returns

void

Defined in: src/app/lib/Response.ts:36

Defined in: src/app/lib/Response.ts:36