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

Method url

source/core/options.ts:1980–1982  ·  view source on GitHub ↗

The URL to request, as a string, a [`https.request` options object](https://nodejs.org/api/https.html#https_https_request_options_callback), or a [WHATWG `URL`](https://nodejs.org/api/url.html#url_class_url). Properties from `options` will override properties in the parsed `url`. If no protocol

()

Source from the content-addressed store, hash-verified

1978 ```
1979 */
1980 get url(): string | URL | undefined {
1981 return this.#internals.url;
1982 }
1983
1984 set url(value: string | URL | undefined) {
1985 assertAny('url', [is.string, is.urlInstance, is.undefined], value);

Callers

nothing calls this directly

Calls 6

assertAnyFunction · 0.85
trackStateMutationFunction · 0.85
isAbsoluteUrlFunction · 0.85
usesUnixSocketFunction · 0.85

Tested by

no test coverage detected