Class: ObjectStreamResponse
Response for ObjectStream. The object stream is encoded as a text stream.
Example:
return new ObjectStreamResponse(objectStream);
Hierarchy
-
Response
↳
ObjectStreamResponse
Constructors
constructor
• new ObjectStreamResponse(stream
, init?
): ObjectStreamResponse
Parameters
Name | Type |
---|---|
stream | ObjectStream <unknown > |
init? | ResponseInit |
Returns
Overrides
Response.constructor
Defined in
packages/modelfusion/src/model-function/generate-object/ObjectStream.ts:20
Methods
arrayBuffer
▸ arrayBuffer(): Promise
<ArrayBuffer
>
Returns
Promise
<ArrayBuffer
>
Inherited from
Response.arrayBuffer
Defined in
node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.dom.d.ts:3149
blob
▸ blob(): Promise
<Blob
>
Returns
Promise
<Blob
>
Inherited from
Response.blob
Defined in
node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.dom.d.ts:3151
clone
▸ clone(): Response
Returns
Response
Inherited from
Response.clone
Defined in
node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.dom.d.ts:18812
formData
▸ formData(): Promise
<FormData
>
Returns
Promise
<FormData
>
Inherited from
Response.formData
Defined in
node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.dom.d.ts:3153
json
▸ json(): Promise
<any
>
Returns
Promise
<any
>
Inherited from
Response.json
Defined in
node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.dom.d.ts:3155
text
▸ text(): Promise
<string
>
Returns
Promise
<string
>
Inherited from
Response.text
Defined in
node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.dom.d.ts:3157
error
▸ error(): Response
Returns
Response
Inherited from
Response.error
Defined in
node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.dom.d.ts:18819
json
▸ json(data
, init?
): Response
Parameters
Name | Type |
---|---|
data | any |
init? | ResponseInit |
Returns
Response
Inherited from
Response.json
Defined in
node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.dom.d.ts:18821
redirect
▸ redirect(url
, status?
): Response
Parameters
Name | Type |
---|---|
url | string | URL |
status? | number |
Returns
Response
Inherited from
Response.redirect
Defined in
node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.dom.d.ts:18823
Properties
body
• Readonly
body: null
| ReadableStream
<Uint8Array
>
Inherited from
Response.body
Defined in
node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.dom.d.ts:3145
bodyUsed
• Readonly
bodyUsed: boolean
Inherited from
Response.bodyUsed
Defined in
node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.dom.d.ts:3147
headers
• Readonly
headers: Headers
Inherited from
Response.headers
Defined in
node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.dom.d.ts:18798
ok
• Readonly
ok: boolean
Inherited from
Response.ok
Defined in
node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.dom.d.ts:18800
redirected
• Readonly
redirected: boolean
Inherited from
Response.redirected
Defined in
node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.dom.d.ts:18802
status
• Readonly
status: number
Inherited from
Response.status
Defined in
node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.dom.d.ts:18804
statusText
• Readonly
statusText: string
Inherited from
Response.statusText
Defined in
node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.dom.d.ts:18806
type
• Readonly
type: ResponseType
Inherited from
Response.type
Defined in
node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.dom.d.ts:18808
url
• Readonly
url: string
Inherited from
Response.url
Defined in
node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.dom.d.ts:18810