Variable requestLocalSocket
requestLocalSocket: (
socketPath: string,
path: string,
options?: { method?: string; timeoutMs?: number },
) => Promise<
{
body: Buffer;
headers: any;
kind: string;
ok: boolean;
status: number;
url: string;
why: string;
},
> = ...
Type Declaration
-
- (
socketPath: string,
path: string,
options?: { method?: string; timeoutMs?: number },
): Promise<
{
body: Buffer;
headers: any;
kind: string;
ok: boolean;
status: number;
url: string;
why: string;
},
>
-
Parameters
- socketPath: string
- path: string
Optionaloptions: { method?: string; timeoutMs?: number }
Returns Promise<
{
body: Buffer;
headers: any;
kind: string;
ok: boolean;
status: number;
url: string;
why: string;
},
>
a promise of { ok, status, body, headers, kind, why, url }
Forwards to
FederationHttp.requestLocalSocket().