code stringlengths 24 2.07M | docstring stringlengths 25 85.3k | func_name stringlengths 1 92 | language stringclasses 1
value | repo stringlengths 5 64 | path stringlengths 4 172 | url stringlengths 44 218 | license stringclasses 7
values |
|---|---|---|---|---|---|---|---|
format(pendingInterceptors) {
const withPrettyHeaders = pendingInterceptors.map(
({ method, path, data: { statusCode }, persist, times, timesInvoked, origin }) => ({
Method: method,
Origin: origin,
Path: path,
"Status code": statusCode,
Persi... | Sets up the base interceptor for mocking replies from undici. | format | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
constructor(opts) {
super(opts);
this[kNetConnect] = true;
this[kIsMockActive] = true;
if (opts?.agent && typeof opts.agent.dispatch !== "function") {
throw new InvalidArgumentError("Argument opts.agent must implement Agent");
}
const agent = opts?.agent ? opts.... | Sets up the base interceptor for mocking replies from undici. | constructor | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
get(origin) {
let dispatcher = this[kMockAgentGet](origin);
if (!dispatcher) {
dispatcher = this[kFactory](origin);
this[kMockAgentSet](origin, dispatcher);
}
return dispatcher;
} | Sets up the base interceptor for mocking replies from undici. | get | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
dispatch(opts, handler) {
this.get(opts.origin);
return this[kAgent].dispatch(opts, handler);
} | Sets up the base interceptor for mocking replies from undici. | dispatch | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
async close() {
await this[kAgent].close();
this[kClients].clear();
} | Sets up the base interceptor for mocking replies from undici. | close | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
deactivate() {
this[kIsMockActive] = false;
} | Sets up the base interceptor for mocking replies from undici. | deactivate | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
activate() {
this[kIsMockActive] = true;
} | Sets up the base interceptor for mocking replies from undici. | activate | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
enableNetConnect(matcher) {
if (typeof matcher === "string" || typeof matcher === "function" || matcher instanceof RegExp) {
if (Array.isArray(this[kNetConnect])) {
this[kNetConnect].push(matcher);
} else {
this[kNetConnect] = [matcher];
}
} else if ... | Sets up the base interceptor for mocking replies from undici. | enableNetConnect | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
disableNetConnect() {
this[kNetConnect] = false;
} | Sets up the base interceptor for mocking replies from undici. | disableNetConnect | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
get isMockActive() {
return this[kIsMockActive];
} | Sets up the base interceptor for mocking replies from undici. | isMockActive | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
pendingInterceptors() {
const mockAgentClients = this[kClients];
return Array.from(mockAgentClients.entries()).flatMap(([origin, scope]) => scope[kDispatches].map((dispatch) => ({ ...dispatch, origin }))).filter(({ pending }) => pending);
} | Sets up the base interceptor for mocking replies from undici. | pendingInterceptors | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
assertNoPendingInterceptors({ pendingInterceptorsFormatter = new PendingInterceptorsFormatter() } = {}) {
const pending = this.pendingInterceptors();
if (pending.length === 0) {
return;
}
const pluralizer = new Pluralizer("interceptor", "interceptors").pluralize(pending.length)... | Sets up the base interceptor for mocking replies from undici. | assertNoPendingInterceptors | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
function setGlobalDispatcher(agent) {
if (!agent || typeof agent.dispatch !== "function") {
throw new InvalidArgumentError("Argument agent must implement Agent");
}
Object.defineProperty(globalThis, globalDispatcher, {
value: agent,
writable: true,
enumerable: false,
... | Sets up the base interceptor for mocking replies from undici. | setGlobalDispatcher | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
function getGlobalDispatcher() {
return globalThis[globalDispatcher];
} | Sets up the base interceptor for mocking replies from undici. | getGlobalDispatcher | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
constructor(handler) {
__privateAdd(this, _handler, void 0);
if (typeof handler !== "object" || handler === null) {
throw new TypeError("handler must be an object");
}
__privateSet(this, _handler, handler);
} | Sets up the base interceptor for mocking replies from undici. | constructor | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
onConnect(...args) {
return __privateGet(this, _handler).onConnect?.(...args);
} | Sets up the base interceptor for mocking replies from undici. | onConnect | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
onError(...args) {
return __privateGet(this, _handler).onError?.(...args);
} | Sets up the base interceptor for mocking replies from undici. | onError | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
onUpgrade(...args) {
return __privateGet(this, _handler).onUpgrade?.(...args);
} | Sets up the base interceptor for mocking replies from undici. | onUpgrade | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
onResponseStarted(...args) {
return __privateGet(this, _handler).onResponseStarted?.(...args);
} | Sets up the base interceptor for mocking replies from undici. | onResponseStarted | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
onHeaders(...args) {
return __privateGet(this, _handler).onHeaders?.(...args);
} | Sets up the base interceptor for mocking replies from undici. | onHeaders | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
onData(...args) {
return __privateGet(this, _handler).onData?.(...args);
} | Sets up the base interceptor for mocking replies from undici. | onData | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
onComplete(...args) {
return __privateGet(this, _handler).onComplete?.(...args);
} | Sets up the base interceptor for mocking replies from undici. | onComplete | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
onBodySent(...args) {
return __privateGet(this, _handler).onBodySent?.(...args);
} | Sets up the base interceptor for mocking replies from undici. | onBodySent | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
constructor({ maxSize }, handler) {
super(handler);
__privateAdd(this, _customAbort);
__privateAdd(this, _maxSize, 1024 * 1024);
__privateAdd(this, _abort, null);
__privateAdd(this, _dumped, false);
__privateAdd(this, _aborted, false);
__privateAdd(this, _size, 0)... | Sets up the base interceptor for mocking replies from undici. | constructor | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
onConnect(abort) {
__privateSet(this, _abort, abort);
__privateGet(this, _handler).onConnect(__privateMethod(this, _customAbort, customAbort_fn).bind(this));
} | Sets up the base interceptor for mocking replies from undici. | onConnect | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
onHeaders(statusCode, rawHeaders, resume, statusMessage) {
const headers = util.parseHeaders(rawHeaders);
const contentLength = headers["content-length"];
if (contentLength != null && contentLength > __privateGet(this, _maxSize)) {
throw new RequestAbortedError(
`Response s... | Sets up the base interceptor for mocking replies from undici. | onHeaders | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
onError(err) {
if (__privateGet(this, _dumped)) {
return;
}
err = __privateGet(this, _reason) ?? err;
__privateGet(this, _handler).onError(err);
} | Sets up the base interceptor for mocking replies from undici. | onError | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
onData(chunk) {
__privateSet(this, _size, __privateGet(this, _size) + chunk.length);
if (__privateGet(this, _size) >= __privateGet(this, _maxSize)) {
__privateSet(this, _dumped, true);
if (__privateGet(this, _aborted)) {
__privateGet(this, _handler).onError(__privateGet(t... | Sets up the base interceptor for mocking replies from undici. | onData | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
onComplete(trailers) {
if (__privateGet(this, _dumped)) {
return;
}
if (__privateGet(this, _aborted)) {
__privateGet(this, _handler).onError(this.reason);
return;
}
__privateGet(this, _handler).onComplete(trailers);
} | Sets up the base interceptor for mocking replies from undici. | onComplete | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
function createDumpInterceptor({ maxSize: defaultMaxSize } = {
maxSize: 1024 * 1024
}) {
return (dispatch) => {
return /* @__PURE__ */ __name(function Intercept(opts, handler) {
const { dumpMaxSize = defaultMaxSize } = opts;
const dumpHandler = new DumpHandler(
{ ... | Sets up the base interceptor for mocking replies from undici. | createDumpInterceptor | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
function isHTTPWhiteSpaceCharCode(code) {
return code === 10 || code === 13 || code === 9 || code === 32;
} | Sets up the base interceptor for mocking replies from undici. | isHTTPWhiteSpaceCharCode | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
function headerValueNormalize(potentialValue) {
let i = 0;
let j = potentialValue.length;
while (j > i && isHTTPWhiteSpaceCharCode(potentialValue.charCodeAt(j - 1)))
--j;
while (j > i && isHTTPWhiteSpaceCharCode(potentialValue.charCodeAt(i)))
++i;
return i === 0 && j === po... | Sets up the base interceptor for mocking replies from undici. | headerValueNormalize | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
function fill(headers, object) {
if (Array.isArray(object)) {
for (let i = 0; i < object.length; ++i) {
const header = object[i];
if (header.length !== 2) {
throw webidl.errors.exception({
header: "Headers constructor",
message: `expected name/va... | Sets up the base interceptor for mocking replies from undici. | fill | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
function appendHeader(headers, name, value) {
value = headerValueNormalize(value);
if (!isValidHeaderName(name)) {
throw webidl.errors.invalidArgument({
prefix: "Headers.append",
value: name,
type: "header name"
});
} else if (!isValidHeaderValue(value)) {... | Sets up the base interceptor for mocking replies from undici. | appendHeader | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
function compareHeaderName(a, b) {
return a[0] < b[0] ? -1 : 1;
} | Sets up the base interceptor for mocking replies from undici. | compareHeaderName | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
contains(name, isLowerCase) {
return this[kHeadersMap].has(isLowerCase ? name : name.toLowerCase());
} | @see https://fetch.spec.whatwg.org/#header-list-contains
@param {string} name
@param {boolean} isLowerCase | contains | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
clear() {
this[kHeadersMap].clear();
this[kHeadersSortedMap] = null;
this.cookies = null;
} | @see https://fetch.spec.whatwg.org/#header-list-contains
@param {string} name
@param {boolean} isLowerCase | clear | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
append(name, value, isLowerCase) {
this[kHeadersSortedMap] = null;
const lowercaseName = isLowerCase ? name : name.toLowerCase();
const exists = this[kHeadersMap].get(lowercaseName);
if (exists) {
const delimiter = lowercaseName === "cookie" ? "; " : ", ";
this[kHeade... | @see https://fetch.spec.whatwg.org/#concept-header-list-append
@param {string} name
@param {string} value
@param {boolean} isLowerCase | append | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
set(name, value, isLowerCase) {
this[kHeadersSortedMap] = null;
const lowercaseName = isLowerCase ? name : name.toLowerCase();
if (lowercaseName === "set-cookie") {
this.cookies = [value];
}
this[kHeadersMap].set(lowercaseName, { name, value });
} | @see https://fetch.spec.whatwg.org/#concept-header-list-set
@param {string} name
@param {string} value
@param {boolean} isLowerCase | set | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
delete(name, isLowerCase) {
this[kHeadersSortedMap] = null;
if (!isLowerCase)
name = name.toLowerCase();
if (name === "set-cookie") {
this.cookies = null;
}
this[kHeadersMap].delete(name);
} | @see https://fetch.spec.whatwg.org/#concept-header-list-delete
@param {string} name
@param {boolean} isLowerCase | delete | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
get(name, isLowerCase) {
return this[kHeadersMap].get(isLowerCase ? name : name.toLowerCase())?.value ?? null;
} | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | get | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
get entries() {
const headers = {};
if (this[kHeadersMap].size !== 0) {
for (const { name, value } of this[kHeadersMap].values()) {
headers[name] = value;
}
}
return headers;
} | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | entries | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
rawValues() {
return this[kHeadersMap].values();
} | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | rawValues | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
get entriesList() {
const headers = [];
if (this[kHeadersMap].size !== 0) {
for (const { 0: lowerName, 1: { name, value } } of this[kHeadersMap]) {
if (lowerName === "set-cookie") {
for (const cookie of this.cookies) {
headers.push([name, cookie]);
... | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | entriesList | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
toSortedArray() {
const size = this[kHeadersMap].size;
const array = new Array(size);
if (size <= 32) {
if (size === 0) {
return array;
}
const iterator = this[kHeadersMap][Symbol.iterator]();
const firstValue = iterator.next().value;
... | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | toSortedArray | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
constructor(init = void 0) {
__privateAdd(this, _guard, void 0);
__privateAdd(this, _headersList, void 0);
webidl.util.markAsUncloneable(this);
if (init === kConstruct) {
return;
}
__privateSet(this, _headersList, new HeadersList());
__privateSet(this, _... | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | constructor | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
append(name, value) {
webidl.brandCheck(this, _Headers);
webidl.argumentLengthCheck(arguments, 2, "Headers.append");
const prefix = "Headers.append";
name = webidl.converters.ByteString(name, prefix, "name");
value = webidl.converters.ByteString(value, prefix, "value");
r... | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | append | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
delete(name) {
webidl.brandCheck(this, _Headers);
webidl.argumentLengthCheck(arguments, 1, "Headers.delete");
const prefix = "Headers.delete";
name = webidl.converters.ByteString(name, prefix, "name");
if (!isValidHeaderName(name)) {
throw webidl.errors.invalidArgument(... | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | delete | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
get(name) {
webidl.brandCheck(this, _Headers);
webidl.argumentLengthCheck(arguments, 1, "Headers.get");
const prefix = "Headers.get";
name = webidl.converters.ByteString(name, prefix, "name");
if (!isValidHeaderName(name)) {
throw webidl.errors.invalidArgument({
... | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | get | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
has(name) {
webidl.brandCheck(this, _Headers);
webidl.argumentLengthCheck(arguments, 1, "Headers.has");
const prefix = "Headers.has";
name = webidl.converters.ByteString(name, prefix, "name");
if (!isValidHeaderName(name)) {
throw webidl.errors.invalidArgument({
... | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | has | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
set(name, value) {
webidl.brandCheck(this, _Headers);
webidl.argumentLengthCheck(arguments, 2, "Headers.set");
const prefix = "Headers.set";
name = webidl.converters.ByteString(name, prefix, "name");
value = webidl.converters.ByteString(value, prefix, "value");
value = he... | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | set | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
getSetCookie() {
webidl.brandCheck(this, _Headers);
const list = __privateGet(this, _headersList).cookies;
if (list) {
return [...list];
}
return [];
} | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | getSetCookie | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
static getHeadersGuard(o) {
return __privateGet(o, _guard);
} | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | getHeadersGuard | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
static setHeadersGuard(o, guard) {
__privateSet(o, _guard, guard);
} | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | setHeadersGuard | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
static getHeadersList(o) {
return __privateGet(o, _headersList);
} | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | getHeadersList | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
static setHeadersList(o, list) {
__privateSet(o, _headersList, list);
} | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | setHeadersList | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
static error() {
const responseObject = fromInnerResponse2(makeNetworkError2(), "immutable");
return responseObject;
} | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | error | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
static json(data, init = {}) {
webidl.argumentLengthCheck(arguments, 1, "Response.json");
if (init !== null) {
init = webidl.converters.ResponseInit(init);
}
const bytes = textEncoder.encode(
serializeJavascriptValueToJSONString(data)
);
const body = e... | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | json | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
static redirect(url, status = 302) {
webidl.argumentLengthCheck(arguments, 1, "Response.redirect");
url = webidl.converters.USVString(url);
status = webidl.converters["unsigned short"](status);
let parsedURL;
try {
parsedURL = new URL(url, relevantRealm.settingsObject.b... | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | redirect | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
constructor(body = null, init = {}) {
webidl.util.markAsUncloneable(this);
if (body === kConstruct) {
return;
}
if (body !== null) {
body = webidl.converters.BodyInit(body);
}
init = webidl.converters.ResponseInit(init);
this[kState] = makeResp... | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | constructor | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
get type() {
webidl.brandCheck(this, _Response);
return this[kState].type;
} | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | type | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
get url() {
webidl.brandCheck(this, _Response);
const urlList = this[kState].urlList;
const url = urlList[urlList.length - 1] ?? null;
if (url === null) {
return "";
}
return URLSerializer(url, true);
} | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | url | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
get redirected() {
webidl.brandCheck(this, _Response);
return this[kState].urlList.length > 1;
} | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | redirected | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
get status() {
webidl.brandCheck(this, _Response);
return this[kState].status;
} | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | status | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
get ok() {
webidl.brandCheck(this, _Response);
return this[kState].status >= 200 && this[kState].status <= 299;
} | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | ok | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
get statusText() {
webidl.brandCheck(this, _Response);
return this[kState].statusText;
} | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | statusText | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
get headers() {
webidl.brandCheck(this, _Response);
return this[kHeaders];
} | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | headers | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
get body() {
webidl.brandCheck(this, _Response);
return this[kState].body ? this[kState].body.stream : null;
} | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | body | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
get bodyUsed() {
webidl.brandCheck(this, _Response);
return !!this[kState].body && util.isDisturbed(this[kState].body.stream);
} | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | bodyUsed | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
clone() {
webidl.brandCheck(this, _Response);
if (bodyUnusable(this)) {
throw webidl.errors.exception({
header: "Response.clone",
message: "Body has already been consumed."
});
}
const clonedResponse = cloneResponse(this[kState]);
retur... | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | clone | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
function cloneResponse(response) {
if (response.internalResponse) {
return filterResponse(
cloneResponse(response.internalResponse),
response.type
);
}
const newResponse = makeResponse({ ...response, body: null });
if (response.body != null) {
newRespo... | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | cloneResponse | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
function makeResponse(init) {
return {
aborted: false,
rangeRequested: false,
timingAllowPassed: false,
requestIncludesCredentials: false,
type: "default",
status: 200,
timingInfo: null,
cacheState: "",
statusText: "",
...init,
... | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | makeResponse | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
function makeNetworkError2(reason) {
const isError = isErrorLike(reason);
return makeResponse({
type: "error",
status: 0,
error: isError ? reason : new Error(reason ? String(reason) : reason),
aborted: reason && reason.name === "AbortError"
});
} | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | makeNetworkError2 | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
function isNetworkError(response) {
return (
// A network error is a response whose type is "error",
response.type === "error" && // status is 0
response.status === 0
);
} | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | isNetworkError | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
function makeFilteredResponse(response, state) {
state = {
internalResponse: response,
...state
};
return new Proxy(response, {
get(target, p) {
return p in state ? state[p] : target[p];
},
set(target, p, value) {
assert(!(p in state));
... | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | makeFilteredResponse | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
get(target, p) {
return p in state ? state[p] : target[p];
} | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | get | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
set(target, p, value) {
assert(!(p in state));
target[p] = value;
return true;
} | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | set | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
function filterResponse(response, type) {
if (type === "basic") {
return makeFilteredResponse(response, {
type: "basic",
headersList: response.headersList
});
} else if (type === "cors") {
return makeFilteredResponse(response, {
type: "cors",
h... | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | filterResponse | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
function makeAppropriateNetworkError(fetchParams, err = null) {
assert(isCancelled(fetchParams));
return isAborted(fetchParams) ? makeNetworkError2(Object.assign(new DOMException("The operation was aborted.", "AbortError"), { cause: err })) : makeNetworkError2(Object.assign(new DOMException("Request was can... | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | makeAppropriateNetworkError | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
function initializeResponse(response, init, body) {
if (init.status !== null && (init.status < 200 || init.status > 599)) {
throw new RangeError('init["status"] must be in the range of 200 to 599, inclusive.');
}
if ("statusText" in init && init.statusText != null) {
if (!isValidReason... | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | initializeResponse | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
function fromInnerResponse2(innerResponse, guard) {
const response = new Response2(kConstruct);
response[kState] = innerResponse;
response[kHeaders] = new Headers2(kConstruct);
setHeadersList(response[kHeaders], innerResponse.headersList);
setHeadersGuard(response[kHeaders], guard);
... | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | fromInnerResponse2 | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
constructor(value) {
this.value = value;
} | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | constructor | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
deref() {
return this.value[kConnected] === 0 && this.value[kSize] === 0 ? void 0 : this.value;
} | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | deref | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
constructor(finalizer) {
this.finalizer = finalizer;
} | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | constructor | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
register(dispatcher, key) {
if (dispatcher.on) {
dispatcher.on("disconnect", () => {
if (dispatcher[kConnected] === 0 && dispatcher[kSize] === 0) {
this.finalizer(key);
}
});
}
} | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | register | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
function buildAbort(acRef) {
return abort;
function abort() {
const ac = acRef.deref();
if (ac !== void 0) {
requestFinalizer.unregister(abort);
this.removeEventListener("abort", abort);
ac.abort(this.reason);
const controllerList = dependentController... | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | buildAbort | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
function abort() {
const ac = acRef.deref();
if (ac !== void 0) {
requestFinalizer.unregister(abort);
this.removeEventListener("abort", abort);
ac.abort(this.reason);
const controllerList = dependentControllerMap.get(ac.signal);
if (controllerList !== vo... | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | abort | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
get method() {
webidl.brandCheck(this, _Request2);
return this[kState].method;
} | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | method | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
get url() {
webidl.brandCheck(this, _Request2);
return URLSerializer(this[kState].url);
} | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | url | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
get headers() {
webidl.brandCheck(this, _Request2);
return this[kHeaders];
} | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | headers | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
get destination() {
webidl.brandCheck(this, _Request2);
return this[kState].destination;
} | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | destination | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
get referrer() {
webidl.brandCheck(this, _Request2);
if (this[kState].referrer === "no-referrer") {
return "";
}
if (this[kState].referrer === "client") {
return "about:client";
}
return this[kState].referrer.toString();
} | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | referrer | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
get referrerPolicy() {
webidl.brandCheck(this, _Request2);
return this[kState].referrerPolicy;
} | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | referrerPolicy | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
get mode() {
webidl.brandCheck(this, _Request2);
return this[kState].mode;
} | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | mode | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
get credentials() {
return this[kState].credentials;
} | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | credentials | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
get cache() {
webidl.brandCheck(this, _Request2);
return this[kState].cache;
} | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | cache | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
get redirect() {
webidl.brandCheck(this, _Request2);
return this[kState].redirect;
} | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | redirect | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
get integrity() {
webidl.brandCheck(this, _Request2);
return this[kState].integrity;
} | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | integrity | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
get keepalive() {
webidl.brandCheck(this, _Request2);
return this[kState].keepalive;
} | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | keepalive | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
get isReloadNavigation() {
webidl.brandCheck(this, _Request2);
return this[kState].reloadNavigation;
} | @see https://fetch.spec.whatwg.org/#concept-header-list-get
@param {string} name
@param {boolean} isLowerCase
@returns {string | null} | isReloadNavigation | javascript | vercel/next.js | packages/next/src/compiled/@edge-runtime/primitives/load.js | https://github.com/vercel/next.js/blob/master/packages/next/src/compiled/@edge-runtime/primitives/load.js | MIT |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.