Skip to the content.

@goodwaygroup/lib-tradedesk - v1.3.1 / Response

Class: Response

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

+ new Response(body?: BodyInit, init?: ResponseInit): Response

Parameters

Name Type
body? BodyInit
init? ResponseInit

Returns: Response

Defined in: node_modules/@types/node-fetch/index.d.ts:167

Properties

body

body: ReadableStream

Defined in: node_modules/@types/node-fetch/index.d.ts:145


bodyUsed

bodyUsed: boolean

Defined in: node_modules/@types/node-fetch/index.d.ts:146


headers

headers: Headers

Defined in: node_modules/@types/node-fetch/index.d.ts:172


ok

ok: boolean

Defined in: node_modules/@types/node-fetch/index.d.ts:173


redirected

redirected: boolean

Defined in: node_modules/@types/node-fetch/index.d.ts:174


size

size: number

Defined in: node_modules/@types/node-fetch/index.d.ts:149


status

status: number

Defined in: node_modules/@types/node-fetch/index.d.ts:175


statusText

statusText: string

Defined in: node_modules/@types/node-fetch/index.d.ts:176


timeout

timeout: number

Defined in: node_modules/@types/node-fetch/index.d.ts:152


type

type: ResponseType

Defined in: node_modules/@types/node-fetch/index.d.ts:177


url

url: string

Defined in: node_modules/@types/node-fetch/index.d.ts:178

Methods

arrayBuffer

arrayBuffer(): Promise<ArrayBuffer>

Returns: Promise<ArrayBuffer>

Defined in: node_modules/@types/node-fetch/index.d.ts:143


blob

blob(): Promise<Blob>

Returns: Promise<Blob>

Defined in: node_modules/@types/node-fetch/index.d.ts:144


buffer

buffer(): Promise<Buffer>

Returns: Promise<Buffer>

Defined in: node_modules/@types/node-fetch/index.d.ts:147


clone

clone(): Response

Returns: Response

Defined in: node_modules/@types/node-fetch/index.d.ts:171


json

json(): Promise<any>

Returns: Promise<any>

Defined in: node_modules/@types/node-fetch/index.d.ts:148


text

text(): Promise<string>

Returns: Promise<string>

Defined in: node_modules/@types/node-fetch/index.d.ts:150


textConverted

textConverted(): Promise<string>

Returns: Promise<string>

Defined in: node_modules/@types/node-fetch/index.d.ts:151


error

Static error(): Response

Returns: Response

Defined in: node_modules/@types/node-fetch/index.d.ts:169


redirect

Static redirect(url: string, status: number): Response

Parameters

Name Type
url string
status number

Returns: Response

Defined in: node_modules/@types/node-fetch/index.d.ts:170