From 5cb1d18439f562c8004a941b0f56ed034a44b052 Mon Sep 17 00:00:00 2001 From: Leo Kettmeir Date: Fri, 28 Jul 2023 09:01:06 +0200 Subject: 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 --- cli/tsc/dts/lib.deno.unstable.d.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cli/tsc') 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. -- cgit v1.2.3