* @param {Request} request * @returns {ArrayBuffer} * Returns the request body stream of the given request. * @note This is only relevant in the context of `http.ClientRequest`. * This function will throw if the given `request` wasn't created based on * the `http.ClientRequest` instance. * You
(request)
| 13 | * You must rely on the web stream consumers for other request clients. |
| 14 | */ |
| 15 | function getDecompressedGetBody(request) { |
| 16 | if (request.method !== 'GET') { |
| 17 | throw new Error('The request method must be GET') |
| 18 | } |
| 19 | return Readable.from(Reflect.get(request, kDecompressedGetBody)) |
| 20 | } |
| 21 | |
| 22 | /** |
| 23 | * @param {Request} request |
no test coverage detected
searching dependent graphs…