Re: [blink-dev] Intent to Ship: Fetch: Headers.getSetCookie()

2023-02-23 Thread Andreu Botella
Yes, I was thinking of proxyFetch as an API that wraps over a call to a proxy, such that you could pass and get Headers objects that correspond directly to the "raw" headers of the proxied request and response. The proxyFetch function would then encode and decode those "raw" headers somehow in

Re: [blink-dev] Intent to Ship: Fetch: Headers.getSetCookie()

2023-02-23 Thread Yoav Weiss
On Thu, Feb 23, 2023 at 10:14 AM Andreu Botella wrote: > Sorry for taking so long to reply. > > One possible client-side use case enabled by this addition is as part of a > JS API for a proxy, possibly one that allows access to public servers that > aren't CORS-accessible: > > // example.com does

Re: [blink-dev] Intent to Ship: Fetch: Headers.getSetCookie()

2023-02-23 Thread Andreu Botella
Sorry for taking so long to reply. One possible client-side use case enabled by this addition is as part of a JS API for a proxy, possibly one that allows access to public servers that aren't CORS-accessible: // example.com doesn't support CORS! const {headers, body} = proxyFetch("https://exa

Re: [blink-dev] Intent to Ship: Fetch: Headers.getSetCookie()

2023-02-15 Thread Yoav Weiss
On Fri, Feb 10, 2023 at 7:05 PM Andreu Botella wrote: > Contact emails abote...@igalia.com, ri...@chromium.org > > Explainer None > An explainer (or even an inline explanation of how developers are supposed to use this) would've been helpful here. As is, I don't understand what the implications

Re: [blink-dev] Intent to Ship: Fetch: Headers.getSetCookie()

2023-02-14 Thread Philip Jägenstedt
LGTM1 On Fri, Feb 10, 2023 at 7:05 PM Andreu Botella wrote: > Contact emails abote...@igalia.com, ri...@chromium.org > > Explainer None > > Specification https://fetch.spec.whatwg.org/#dom-headers-getsetcookie > > Design docs > https://github.com/whatwg/fetch/issues/973#issuecomment-902578584 >

[blink-dev] Intent to Ship: Fetch: Headers.getSetCookie()

2023-02-10 Thread Andreu Botella
Contact emails abote...@igalia.com, ri...@chromium.org Explainer None Specification https://fetch.spec.whatwg.org/#dom-headers-getsetcookie Design docs https://github.com/whatwg/fetch/issues/973#issuecomment-902578584 https://github.com/whatwg/fetch/issues/9