MCPcopy
hub / github.com/sindresorhus/got / request

Method request

source/core/options.ts:1663–1665  ·  view source on GitHub ↗

Custom request function. The main purpose of this is to [support HTTP2 using a wrapper](https://github.com/szmarczak/http2-wrapper). @default http.request | https.request

()

Source from the content-addressed store, hash-verified

1661 @default http.request | https.request
1662 */
1663 get request(): RequestFunction | undefined {
1664 return this.#internals.request;
1665 }
1666
1667 set request(value: RequestFunction | undefined) {
1668 assertAny('request', [is.function, is.undefined], value);

Callers 5

fnFunction · 0.80
_prepareCacheMethod · 0.80
requestFunction · 0.80
requestFunction · 0.80

Calls 1

assertAnyFunction · 0.85

Tested by

no test coverage detected