forked from canada-ca/tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrequest.web.d.ts
More file actions
25 lines (25 loc) · 877 Bytes
/
Copy pathrequest.web.d.ts
File metadata and controls
25 lines (25 loc) · 877 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/**
* Node.js implementation of the HTTP(S) request function.
*
* @packageDocumentation
* @internal
* @hidden
*/
import { RequestInterceptors, XhrOptions } from "../connection";
import { Errback } from "./errback";
import { ArangojsResponse, RequestOptions } from "./request.node";
export declare const isBrowser = true;
/**
* Create a function for performing requests against a given host.
*
* @param baseUrl - Base URL of the host, i.e. protocol, port and domain name.
* @param agentOptions - Options to use for performing requests.
*
* @param baseUrl
* @param agentOptions
*
* @internal
* @hidden
*/
export declare function createRequest(baseUrl: string, agentOptions: XhrOptions & RequestInterceptors): ({ method, url, headers, body, timeout, expectBinary }: RequestOptions, cb: Errback<ArangojsResponse>) => void;
//# sourceMappingURL=request.web.d.ts.map