Skip to main content

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

NameType
streamObjectStream<unknown>
init?ResponseInit

Returns

ObjectStreamResponse

Overrides

Response.constructor

Defined in

packages/modelfusion/src/model-function/generate-object/ObjectStream.ts:20

Methods

arrayBuffer

arrayBuffer(): Promise<ArrayBuffer>

MDN Reference

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>

MDN Reference

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

MDN Reference

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>

MDN Reference

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>

MDN Reference

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>

MDN Reference

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

MDN Reference

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

MDN Reference

Parameters

NameType
dataany
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

MDN Reference

Parameters

NameType
urlstring | 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>

MDN Reference

Inherited from

Response.body

Defined in

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.dom.d.ts:3145


bodyUsed

Readonly bodyUsed: boolean

MDN Reference

Inherited from

Response.bodyUsed

Defined in

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.dom.d.ts:3147


headers

Readonly headers: Headers

MDN Reference

Inherited from

Response.headers

Defined in

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.dom.d.ts:18798


ok

Readonly ok: boolean

MDN Reference

Inherited from

Response.ok

Defined in

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.dom.d.ts:18800


redirected

Readonly redirected: boolean

MDN Reference

Inherited from

Response.redirected

Defined in

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.dom.d.ts:18802


status

Readonly status: number

MDN Reference

Inherited from

Response.status

Defined in

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.dom.d.ts:18804


statusText

Readonly statusText: string

MDN Reference

Inherited from

Response.statusText

Defined in

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.dom.d.ts:18806


type

Readonly type: ResponseType

MDN Reference

Inherited from

Response.type

Defined in

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.dom.d.ts:18808


url

Readonly url: string

MDN Reference

Inherited from

Response.url

Defined in

node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.dom.d.ts:18810