diff --git a/README.md b/README.md index dbe0e7f..8203672 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,28 @@ https://deno.land/x/103_early_hints +> What’s not supported To reduce security and privacy implications, the HTML and +> Fetch living standards have some restrictions on when Early Hints can be +> handled. Chrome ignores Early Hints sent in the following situations to comply +> these specifications. +> +> - Early Hints sent on HTTP/1.1 or earlier +> +> https://chromium.googlesource.com/chromium/src/+/master/docs/early-hints.md#what_s-not-supported + +There is currently no HTTP server in Deno that supports HTTP/2 and can send 103 +Early Hints. + +So this library is currently not working at all. + +Let's reconsider when +[denoland/deno#15827](https://github.com/denoland/deno/issues/15827) is +resolved. + + diff --git a/unstable.ts b/unstable.ts index cd8edcd..891545c 100644 --- a/unstable.ts +++ b/unstable.ts @@ -11,6 +11,8 @@ export type Handler = ( const encoder = new TextEncoder(); /** + * @deprecated + * * Create a 103 Early Hints response. * * The native Response object currently does not allow the creation of 103 Early Hints responses. This function creates a pseudo-response object that can **only** be used within this library. @@ -33,6 +35,8 @@ export function earlyHintsResponse(pathList: string[]): ResponseObject { } /** + * @deprecated + * * Create a server that can return 103 Early Hints. Use with `Deno.serve()`. * * This function is experimental and unstable.