MCPcopy Create free account
hub / github.com/ChainSafe/lodestar / IHttpClient

Interface IHttpClient

packages/api/src/utils/client/httpClient.ts:64–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62};
63
64export interface IHttpClient {
65 readonly baseUrl: string;
66 readonly urlsInits: UrlInitRequired[];
67 readonly urlsScore: number[];
68
69 request<E extends Endpoint>(
70 definition: RouteDefinitionExtra<E>,
71 args: E["args"],
72 localInit?: ApiRequestInit
73 ): Promise<ApiResponse<E>>;
74}
75
76export type HttpClientOptions = ({baseUrl: string} | {urls: (string | UrlInit)[]}) & {
77 globalInit?: ApiRequestInit;

Callers 8

getRespBodyFunction · 0.65
constructorMethod · 0.65
AttnetsServiceClass · 0.65
httpClient.test.tsFile · 0.65
requestTestRouteFunction · 0.65
createApiClientMethodFunction · 0.65

Implementers 2

HttpClientpackages/api/src/utils/client/httpClie
SubnetMappackages/beacon-node/src/network/peers

Calls

no outgoing calls

Tested by

no test coverage detected