4#include "cpprest/http_listener.h"
69 void apply_headers(
Response& response);
96 static web::json::value request_info(
Request message, std::smatch match = std::smatch());
109 virtual Response handle(
Request message, std::smatch match = std::smatch());
122 virtual Response handle_get(
Request message, std::smatch match = std::smatch());
135 virtual Response handle_put(
Request message, std::smatch match = std::smatch());
148 virtual Response handle_post(
Request message, std::smatch match = std::smatch());
161 virtual Response handle_delete(
Request message, std::smatch match = std::smatch());
174 virtual Response handle_patch(
Request message, std::smatch match = std::smatch());
187 virtual Response handle_options(
Request message, std::smatch match = std::smatch());
200 virtual Response handle_head(
Request message, std::smatch match = std::smatch());
213 virtual Response handle_exception(
Request message, std::exception& exception, std::smatch match = std::smatch());
HTTP Resource base class.
std::vector< web::http::method > allowed_methods
Allowed methods.
std::string allowed_origins
Allowed Origins.
std::string content_type
Content type.
web::http::http_request Request
HTTP Request.
web::http::http_response Response
HTTP Response.