Re: [whatwg/fetch] Streaming upload (Issue #1438)

@ioquatix 

> I can't imagine there is anything other than half and full duplex. To avoid using a string for such a case, why not just use a boolean toggle, e.g. fullDuplex: true or bidirectional: true or streaming: true?

I weakly prefer `duplex: 'full' | 'half'` because it's symmetric. IIUC, when we decided to delay the decision on the default value, we chose the option to be symmetric.

For example, the absense of `fullDuplex` option sounds closer to `fullDuplex: false` than `fullDuplex: true`. I'd like to avoid that situation given we don't know what the absense ends up meaning.

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

Message ID: <whatwg/fetch/issues/1438/1163159349@github.com>

Received on Wednesday, 22 June 2022 14:16:12 UTC