interface DiscoveryHttpStream
Since 0.2.0

A streaming HTTP response, as IDiscoveryHttp.stream returns it.

A Kubernetes watch is a chunked response that never ends while the watch is open, so reading it with text() would never resolve.

Properties

readonly
ok: boolean

Whether the status is 2xx.

readonly
status: number

HTTP status code.

readonly
headers: Headers

Response headers.

readonly
body: ReadableStream<Uint8Array> | null

The response body, or null when the response carries none.

Usage

import { type DiscoveryHttpStream } from "service-discovery-plugin/src/index.ts";