Re: [whatwg/fetch] Trailer support in the API (#981)

> Is it impractical to make them available before the body is consumed?

I think it is inherently impossible, yes -- unless the system buffers the body somewhere, but we don't want that, especially in edge proxies.

> Promise<Headers> trailers() makes sense for both Request and Response

Would it make sense for this to be a property rather than a function? That provides nice symmetry between Request/Response and RequestInit/ResponseInit. Note that it's very common to use an instance of Request as a RequestInit, relying on the fact that all the same-named properties have the same type and semantics, so this might be more than a superficial difference.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/981#issuecomment-1645968643
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/fetch/issues/981/1645968643@github.com>

Received on Friday, 21 July 2023 16:39:39 UTC