| 1188 | } |
| 1189 | |
| 1190 | Result HttpResponse::sendMethodNotAllowed(StringSpan allow) |
| 1191 | { |
| 1192 | SC_TRY(startBody(405, 0)); |
| 1193 | SC_TRY(addHeader("Allow", allow)); |
| 1194 | SC_TRY(sendHeaders()); |
| 1195 | return end(); |
| 1196 | } |
| 1197 | |
| 1198 | Result HttpResponse::sendRedirect(int code, StringSpan location) |
| 1199 | { |