(request: HttpServerRequest)
| 851 | } |
| 852 | |
| 853 | const getFormDataBody = (request: HttpServerRequest): FormData | undefined => { |
| 854 | if (!HttpClientRequest.isHttpClientRequest(request.source)) { |
| 855 | return undefined |
| 856 | } |
| 857 | const body = request.source.body |
| 858 | if (body._tag === "FormData") { |
| 859 | return body.formData |
| 860 | } |
| 861 | if (body._tag === "Raw" && isFormData(body.body)) { |
| 862 | return body.body |
| 863 | } |
| 864 | return undefined |
| 865 | } |
| 866 | |
| 867 | const rawBodyStream = (request: HttpServerRequest, body: unknown): Stream.Stream<Uint8Array, HttpServerError> => { |
| 868 | if (body instanceof Request) { |
no test coverage detected