summaryrefslogtreecommitdiff
path: root/cli/tsc/dts/lib.deno.unstable.d.ts
diff options
context:
space:
mode:
authorLeo Kettmeir <crowlkats@toaxl.com>2023-07-28 09:01:06 +0200
committerGitHub <noreply@github.com>2023-07-28 09:01:06 +0200
commit5cb1d18439f562c8004a941b0f56ed034a44b052 (patch)
treee0b3ae76685760a50c1089c8885b6f6369d49282 /cli/tsc/dts/lib.deno.unstable.d.ts
parentcbfa98ea0bf4ee994bf564671ece514eb4efae1f (diff)
feat: Deno.createHttpClient allowHost (#19689)
This adds an option to allow using the host header in a fetch call. Closes https://github.com/denoland/deno/issues/16840 Ref https://github.com/denoland/deno/issues/11017
Diffstat (limited to 'cli/tsc/dts/lib.deno.unstable.d.ts')
-rw-r--r--cli/tsc/dts/lib.deno.unstable.d.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/cli/tsc/dts/lib.deno.unstable.d.ts b/cli/tsc/dts/lib.deno.unstable.d.ts
index 1aa655646..eb612a655 100644
--- a/cli/tsc/dts/lib.deno.unstable.d.ts
+++ b/cli/tsc/dts/lib.deno.unstable.d.ts
@@ -837,6 +837,11 @@ declare namespace Deno {
* @default {true}
*/
http2?: boolean;
+ /** Whether setting the host header is allowed or not.
+ *
+ * @default {false}
+ */
+ allowHost?: boolean;
}
/** **UNSTABLE**: New API, yet to be vetted.