Disclaimer: This website requires Please enable JavaScript in your browser settings for the best experience.

Dev Guide
Dev GuideUser GuidesLegal TermsGitHubDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

OCP App SDK / Request

Request

Index

Constructors

Properties

Accessors

Constructors

constructor()

Signature

new Request(
  method: HttpMethod,
  path: string,
  params: QueryParams,
  headers: string[][],
  body: null | Uint8Array): Request;

Parameters

NameType
methodHttpMethod
pathstring
paramsQueryParams
headersstring[][]
bodynull | Uint8Array

Returns

Request

Defined in: src/app/lib/Request.ts:13

Properties

headers

Headers

Defined in: src/app/lib/Request.ts:9

method

Readonly HttpMethod

Defined in: src/app/lib/Request.ts:6

params

Readonly QueryParams

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

path

Readonly string

Defined in: src/app/lib/Request.ts:7

Accessors

body

Signature

body(): Uint8Array;

Returns

Uint8Array

Defined in: src/app/lib/Request.ts:23

Defined in: src/app/lib/Request.ts:23

bodyJSON

Signature

bodyJSON(): any;

Returns

any

Defined in: src/app/lib/Request.ts:27

Defined in: src/app/lib/Request.ts:27

contentType

Signature

contentType(): null | string;

Returns

null | string

Defined in: src/app/lib/Request.ts:40

Defined in: src/app/lib/Request.ts:40