Skip to content

Commit

Permalink
deprecated module (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
ayame113 authored Sep 18, 2022
1 parent 0f770f2 commit 3350082
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<!--
---
A library that uses Deno's
[flash server](https://github.com/denoland/deno/tree/main/ext/flash)
(experimental) to serve 103 Early Hints.
Expand Down Expand Up @@ -53,3 +75,5 @@ Deno.serve(withEarlyHints(async function* (_request) {
> believe this will be resolved soon.
related: https://github.com/denoland/deno/issues/15827
-->
4 changes: 4 additions & 0 deletions unstable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down

0 comments on commit 3350082

Please sign in to comment.