Open jimevans opened 9 months ago
The Browser Testing and Tools Working Group just discussed Add support for examining/manipulating intercepted network response bodies
.
duplicate of #66
sending large bodies in a json base 64 message is problematic
so... just dont do it : ) instead, let a http proxy handle all the unencrypted traffic
this would also allow to use chromium as a full http client
supporting it depends on the general facility on doing streamed IO
IO.write is not implemented in CDP, see also Fetch.fulfillRequest and (very) long body https://github.com/kaliiiiiiiiii/Selenium-Driverless/issues/123#issuecomment-1912534536
As currently written, the
network
module providesnetwork.provideResponse
, which allows the user to provide a fully-formed response, including a body. It also providesnetwork.continueResponse
to alter some portions of an in-process response that has been intercepted (headers, cookies, etc.). However, there is no current way to examine and manipulate a portion of the body of an intercepted request. This was a known limitation of the initial pass at specifying network interception as a feature, because of the potential large amount of data contained in a response body, and questions about how to best handle that (as a stream, in chunks, etc.). This issue is intended to create a mechanism to fill that gap.