[whatwg/fetch] Does terminating a fetch before headers come back reject the promise? (#416)

It seems like it logically would, but I cannot find spec support for that: https://fetch.spec.whatwg.org/#concept-http-network-fetch

> Wait until all the headers are transmitted or fetch is being terminated with reason reason. If fetch is being terminated, then set response’s termination reason to reason.

After that we jump to step 5 and start doing stream body stuff, which will eventually land at "If at any point fetch is terminated with reason reason, run these subsubsteps:". So I guess it would fulfill with a stream that's errored? But how would you even know what status code to use?

Similarly, what if a network error occurs during the header transmission? I can't figure that out either.

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

Received on Monday, 14 November 2016 21:05:20 UTC