- From: James M Snell <notifications@github.com>
- Date: Tue, 30 Apr 2024 16:20:31 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 30 April 2024 23:20:35 UTC
I'm definitely still very interested in moving things forward here. The approach outlined in the first half of https://docs.google.com/document/d/1P4MskkFd3HHFPGDr01O3wdFXukmX9i0jAb5uh9v9x8Q/edit#heading=h.tst1r01yr7a appears to make the most sense at the moment. For sending trailers, being able to specify a `trailers` option with a `Promise<HeadersInit>` value... e.g. ```js async function getTrailers() { // await stuff return new Headers([['a','b']]); } const req = new Request('https://example.org', { /** ... **/, trailers: getTrailers()); // likewise for `Response` ``` For receiving trailers, something like... ``` await request.trailers; await response.trailers; ``` -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/issues/981#issuecomment-2087703081 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/fetch/issues/981/2087703081@github.com>
Received on Tuesday, 30 April 2024 23:20:35 UTC