http: align destroy w streams
This further aligns ClientRequest with streams
Streams that are prematurely destroyed without error through .destroy() do usually not emit an error.
Align ClientRequest with this behavior.
This changes the behavior to not error when:
-
abort()
fromreq.socket
has been assigned untilreq.res
has been assigned. -
destroy()
untilreq.res
has been assigned.
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