(request: HttpServerRequest)
| 923 | } |
| 924 | |
| 925 | const getFormDataBody = (request: HttpServerRequest): FormData | undefined => { |
| 926 | if (!HttpClientRequest.isHttpClientRequest(request.source)) { |
| 927 | return undefined |
| 928 | } |
| 929 | const body = request.source.body |
| 930 | if (body._tag === "FormData") { |
| 931 | return body.formData |
| 932 | } |
| 933 | if (body._tag === "Raw" && isFormData(body.body)) { |
| 934 | return body.body |
| 935 | } |
| 936 | return undefined |
| 937 | } |
| 938 | |
| 939 | const rawBodyStream = (request: HttpServerRequest, body: unknown): Stream.Stream<Uint8Array, HttpServerError> => { |
| 940 | if (body instanceof Request) { |
no test coverage detected