MCPcopy Create free account
hub / github.com/3rdparty/libprocess / MethodNotAllowed

Method MethodNotAllowed

include/process/http.hpp:759–767  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

757 // 405 (Method Not Allowed) response".
758
759 MethodNotAllowed(
760 const std::initializer_list<std::string>& allowedMethods,
761 const Option<std::string>& requestMethod = None())
762 : Response(
763 constructBody(allowedMethods, requestMethod),
764 Status::METHOD_NOT_ALLOWED)
765 {
766 headers["Allow"] = strings::join(", ", allowedMethods);
767 }
768
769private:
770 static std::string constructBody(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected