method IDiscoveryHttp.request
IDiscoveryHttp.request(
url: string,
): Promise<DiscoveryHttpResponse>

Performs a request and reads the whole body.

A non-2xx response is returned with ok: false, never thrown — callers decide what a 404 or a 410 means.

Parameters

url: string

Absolute URL

optional
init: RequestInit

Standard fetch init

Return Type

The buffered response

Usage

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