MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / sendMethodNotAllowed

Method sendMethodNotAllowed

Libraries/Http/HttpConnection.cpp:1190–1196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1188}
1189
1190Result 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
1198Result HttpResponse::sendRedirect(int code, StringSpan location)
1199{

Callers 3

responseBodyHelpersMethod · 0.80
handleRequestMethod · 0.80
onRequestMethod · 0.80

Calls 1

endFunction · 0.85

Tested by 1

responseBodyHelpersMethod · 0.64