| 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 | |
| 769 | private: |
| 770 | static std::string constructBody( |
nothing calls this directly
no outgoing calls
no test coverage detected