In browsers, you can run `text()`, `json()` and so on on`Request`, the same as you can `Response`, because they both inherit from `Body`: https://developer.mozilla.org/en-US/docs/Web/API/Request We should do the same too, to allow workers to parse content sent in (even factoring in the caveats of #1). Things to do: - abstract out these functions from `FetchResponse` into a new `FetchBody` class, have `FetchResponse` inherit from it - have `FetchRequest` also inherit from it, and read in the request body as an InputStream.
In browsers, you can run
text(),json()and so on onRequest, the same as you canResponse, because they both inherit fromBody: https://developer.mozilla.org/en-US/docs/Web/API/RequestWe should do the same too, to allow workers to parse content sent in (even factoring in the caveats of #1). Things to do:
FetchResponseinto a newFetchBodyclass, haveFetchResponseinherit from itFetchRequestalso inherit from it, and read in the request body as an InputStream.