summaryrefslogtreecommitdiff
path: root/op_crates/web/internal.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'op_crates/web/internal.d.ts')
-rw-r--r--op_crates/web/internal.d.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/op_crates/web/internal.d.ts b/op_crates/web/internal.d.ts
index a5b653218..bfce3e1e1 100644
--- a/op_crates/web/internal.d.ts
+++ b/op_crates/web/internal.d.ts
@@ -28,11 +28,21 @@ declare namespace globalThis {
HTTP_TOKEN_CODE_POINT_RE: RegExp;
HTTP_QUOTED_STRING_TOKEN_POINT: string[];
HTTP_QUOTED_STRING_TOKEN_POINT_RE: RegExp;
+ HTTP_TAB_OR_SPACE_PREFIX_RE: RegExp;
+ HTTP_TAB_OR_SPACE_SUFFIX_RE: RegExp;
HTTP_WHITESPACE_PREFIX_RE: RegExp;
HTTP_WHITESPACE_SUFFIX_RE: RegExp;
regexMatcher(chars: string[]): string;
byteUpperCase(s: string): string;
byteLowerCase(s: string): string;
+ collectHttpQuotedString(
+ input: string,
+ position: number,
+ extractValue: boolean,
+ ): {
+ result: string;
+ position: number;
+ };
};
declare namespace mimesniff {
@@ -42,6 +52,8 @@ declare namespace globalThis {
parameters: Map<string, string>;
}
declare function parseMimeType(input: string): MimeType | null;
+ declare function essence(mimeType: MimeType): string;
+ declare function serializeMimeType(mimeType: MimeType): string;
}
declare var eventTarget: {