interface DiscoveryHttpResponse
Since 0.2.0

A buffered HTTP response, as IDiscoveryHttp.request returns it.

headers is exposed because Consul's blocking-query protocol lives entirely in the X-Consul-Index response header.

Properties

readonly
ok: boolean

Whether the status is 2xx.

readonly
status: number

HTTP status code.

readonly
headers: Headers

Response headers.

readonly
text: string

Response body, read to completion as text.

Usage

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