Lines Matching refs:input
1680 function isomorphicDecode(input) {
1681 if (input.length < MAXIMUM_ARGUMENT_LENGTH) {
1682 return String.fromCharCode(...input);
1684 return input.reduce((previous, current) => previous + String.fromCharCode(current), "");
1697 function isomorphicEncode(input) {
1698 for (let i = 0; i < input.length; i++) {
1699 assert(input.charCodeAt(i) <= 255);
1701 return input;
4573 let input = URLSerializer(dataURL, true);
4574 input = input.slice(5);
4578 input,
4583 if (position.position >= input.length) {
4587 const encodedBody = input.slice(mimeTypeLength + 1);
4618 function collectASequenceOfCodePoints(condition, input, position) {
4620 while (position.position < input.length && condition(input[position.position])) {
4621 result += input[position.position];
4627 function collectASequenceOfCodePointsFast(char, input, position) {
4628 const idx = input.indexOf(char, position.position);
4631 position.position = input.length;
4632 return input.slice(start);
4635 return input.slice(start, position.position);
4638 function stringPercentDecode(input) {
4639 const bytes = encoder.encode(input);
4643 function percentDecode(input) {
4645 for (let i = 0; i < input.length; i++) {
4646 const byte = input[i];
4649 } else if (byte === 37 && !/^[0-9A-Fa-f]{2}$/i.test(String.fromCharCode(input[i + 1], input[i + 2]))) {
4652 const nextTwoBytes = String.fromCharCode(input[i + 1], input[i + 2]);
4661 function parseMIMEType(input) {
4662 input = removeHTTPWhitespace(input, true, true);
4666 input,
4672 if (position.position > input.length) {
4678 input,
4695 while (position.position < input.length) {
4700 input,
4705 input,
4709 if (position.position < input.length) {
4710 if (input[position.position] === ";") {
4715 if (position.position > input.length) {
4719 if (input[position.position] === '"') {
4720 parameterValue = collectAnHTTPQuotedString(input, position, true);
4723 input,
4729 input,
4763 function collectAnHTTPQuotedString(input, position, extractValue) {
4766 assert(input[position.position] === '"');
4771 input,
4774 if (position.position >= input.length) {
4777 const quoteOrBackslash = input[position.position];
4780 if (position.position >= input.length) {
4784 value += input[position.position];
4794 return input.slice(positionStart, position.position);
6085 constructor(input, init = {}) {
6086 if (input === kConstruct) {
6090 input = webidl.converters.RequestInfo(input);
6105 if (typeof input === "string") {
6108 parsedURL = new URL(input, baseUrl);
6110 throw new TypeError("Failed to parse URL from " + input, { cause: err });
6114 "Request cannot be constructed from a URL that includes credentials: " + input
6120 assert(input instanceof _Request);
6121 request = input[kState];
6122 signal = input[kSignal];
6319 const inputBody = input instanceof _Request ? input[kState].body : null;
10391 function fetch2(input, init = {}) {
10396 requestObject = new Request(input, init);