| 1160 | } |
| 1161 | |
| 1162 | Result HttpResponse::sendBytes(int code, Span<const char> body, StringSpan contentType) |
| 1163 | { |
| 1164 | SC_TRY(startBody(code, body.sizeInBytes(), contentType)); |
| 1165 | SC_TRY(sendHeaders()); |
| 1166 | if (body.sizeInBytes() > 0) |
| 1167 | { |
| 1168 | SC_TRY(getWritableStream().write(AsyncBufferView(body))); |
| 1169 | } |
| 1170 | return end(); |
| 1171 | } |
| 1172 | |
| 1173 | Result HttpResponse::sendBody(int code, StringSpan body, StringSpan contentType) |
| 1174 | { |
nothing calls this directly
no test coverage detected