http: align with stream.Writable
This PR works towards consolidating the behavior of http.OutgoingMessage
, which is considered "streamlike", with stream.Writable
.
This does cause some breaking changes that need to be considered.
Some of the breaking changes:
-
write()
return false onwrite after end
. - More error types in
write()
. Don'tthrow
errors. Instead invoke callback and emit error.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines