Preparation work to generate RequestInit with IDL compiler
This CL takes most of the logic in RequestInit::SetUpBody, intended to implement "extract a body", modulo the ReadableStream conversion (https://fetch.spec.whatwg.org/#concept-bodyinit-extract), and moves it to a static function in request.cc. This is some preparation work before adding request_init.idl and generating the RequestInit implementation with the IDL compiler, which is itself some preparation work to getting the BodyInit typedef to work properly in every place it is used (right now only in Request::CreateRequestWithRequestOrString and Response::Create). R=kinuko@chromium.org, kouhei@chromium.org, yhirano@chromium.org, yoav@yoav.ws Bug: 836873 Change-Id: I229c97c761800e0d2615f9f19fd822564978db6e Reviewed-on: https://chromium-review.googlesource.com/1098676Reviewed-by:Yutaka Hirano <yhirano@chromium.org> Commit-Queue: Dominic Farolino <domfarolino@gmail.com> Cr-Commit-Position: refs/heads/master@{#567553}
Showing
Please register or sign in to comment