Response

request.Response

Type parameters

Name
T

Implements

constructor

new Response<T>(request, status, statusText, body): Response<T>

Type parameters

Name
T

Parameters

Name Type
request IRequest
status number
statusText string
body string | Blob

Returns

Response<T>

Defined in

src/core/request/response.ts#24

status

Readonly status: number

Implementation of

IResponse.status

Defined in

src/core/request/response.ts#14


statusText

Readonly statusText: string

Implementation of

IResponse.statusText

Defined in

src/core/request/response.ts#15


request

Readonly request: IRequest

Implementation of

IResponse.request

Defined in

src/core/request/response.ts#17

url

get url(): string

Returns

string

Implementation of

IResponse.url

Defined in

src/core/request/response.ts#18

json

json(): Promise<T>

Returns

Promise<T>

Implementation of

IResponse.json

Defined in

src/core/request/response.ts#36


text

text(): Promise<string>

Returns

Promise<string>

Implementation of

IResponse.text

Defined in

src/core/request/response.ts#40


blob

blob(): Promise<Blob>

Returns

Promise<Blob>

Implementation of

IResponse.blob

Defined in

jodit/src/core/request/response.ts:44

Previous