| 1066 | responseSent = true; |
| 1067 | SC_ASSERT_RELEASE(connection->response.startResponse(200)); |
| 1068 | SC_ASSERT_RELEASE(connection->response.addHeader("Content-Length", "6")); |
| 1069 | SC_ASSERT_RELEASE(connection->response.sendHeaders()); |
| 1070 | SC_ASSERT_RELEASE(connection->response.getWritableStream().write("stored")); |
| 1071 | SC_ASSERT_RELEASE(connection->response.end()); |
| 1072 | } |
| 1073 | |
| 1074 | [[nodiscard]] StringSpan view() const { return {body.toSpanConst(), false, StringEncoding::Ascii}; } |
| 1075 | } serverCtx; |
| 1076 | |
| 1077 | httpServer.onRequest = [this, &serverCtx](HttpConnection& connection) |
| 1078 | { |
| 1079 | serverCtx.connection = &connection; |
nothing calls this directly
no test coverage detected