| 432 | } |
| 433 | } |
| 434 | }; |
| 435 | SC_HTTP_ASSERT_RELEASE(client.response.getWritableStream().eventFinish.addListener(AfterWrite{*this, client})); |
| 436 | |
| 437 | if (client.request.getBodyFramingKind() == HttpBodyFramingKind::None) |
| 438 | { |
| 439 | client.getReadableTransportStream().pause(); |
| 440 | } |
| 441 | else if (client.request.getBodyFramingKind() == HttpBodyFramingKind::Chunked or |
| 442 | client.request.getBodyFramingKind() == HttpBodyFramingKind::ContentLength) |
| 443 | { |
| 444 | SC_HTTP_TRUST_RESULT(client.request.startBodyStream()); |
| 445 | } |
| 446 | } |
| 447 | } |
| 448 | |
| 449 | void HttpAsyncServer::onRequestBodyData(HttpConnection& client, AsyncBufferView::ID bufferID) |
no test coverage detected