Skip to content

@epikodelabs/streamix


@epikodelabs/streamix / networking/src/public-api / Context

Type Alias: Context

Context = object

Defined in: projects/libraries/streamix/networking/src/lib/httpClient.ts:38

The request/response context that flows through the middleware chain.

Middleware can read and mutate this object. After the final middleware runs, response contains the raw Response and parser is used to turn it into a stream of values.

Indexable

[key: string]: any

Properties

url

url: string

Defined in: projects/libraries/streamix/networking/src/lib/httpClient.ts:39


method

method: string

Defined in: projects/libraries/streamix/networking/src/lib/httpClient.ts:40


headers

headers: Record<string, string>

Defined in: projects/libraries/streamix/networking/src/lib/httpClient.ts:41


body?

optional body: any

Defined in: projects/libraries/streamix/networking/src/lib/httpClient.ts:42


params?

optional params: Record<string, string>

Defined in: projects/libraries/streamix/networking/src/lib/httpClient.ts:43


fetch?

optional fetch: Function

Defined in: projects/libraries/streamix/networking/src/lib/httpClient.ts:44


parser

parser: ParserFunction

Defined in: projects/libraries/streamix/networking/src/lib/httpClient.ts:45


ok?

optional ok: boolean

Defined in: projects/libraries/streamix/networking/src/lib/httpClient.ts:46


status?

optional status: number

Defined in: projects/libraries/streamix/networking/src/lib/httpClient.ts:47


statusText?

optional statusText: string

Defined in: projects/libraries/streamix/networking/src/lib/httpClient.ts:48


redirectTo?

optional redirectTo: string

Defined in: projects/libraries/streamix/networking/src/lib/httpClient.ts:49


response?

optional response: Response

Defined in: projects/libraries/streamix/networking/src/lib/httpClient.ts:50


data?

optional data: AsyncIterable<any>

Defined in: projects/libraries/streamix/networking/src/lib/httpClient.ts:51

Released under the GNU AGPL v3 or later.