@ahqstore/plugin-api / HTTPOutput
Class: HTTPOutput
Defined in: index.ts:182
Implements
Constructors
Constructor
new HTTPOutput(
data):HTTPOutput
Defined in: index.ts:189
Parameters
data
Returns
HTTPOutput
Properties
body
body:
ArrayBuffer
Defined in: index.ts:187
Implementation of
headers
headers:
Record<string,string>
Defined in: index.ts:186
Implementation of
ok
ok:
boolean
Defined in: index.ts:183
Implementation of
status
status:
number
Defined in: index.ts:184
Implementation of
statusText
statusText:
string
Defined in: index.ts:185
Implementation of
Methods
json()
json<
T>(encoding):T
Defined in: index.ts:213
Converts the data into json
Type Parameters
T
T
Parameters
encoding
string = "utf-8"
The encoding of the string, default utf-8
Returns
T
Type of data
text()
text(
encoding):string
Defined in: index.ts:202
Converts the data into string
Parameters
encoding
string = "utf-8"
The encoding of the string, default utf-8
Returns
string
string output of the data
toObjectURL()
toObjectURL():
string
Defined in: index.ts:221
Converts the data to object URL
Returns
string
Object URL of the data