27 #if _WIN32_WINNT < _WIN32_WINNT_VISTA
28 #error "Error: http server APIs are not supported in XP"
29 #endif //_WIN32_WINNT < _WIN32_WINNT_VISTA
31 #include "cpprest/http_listener.h"
33 namespace web {
namespace http
virtual ~http_server()
Release any held resources.
Definition: http_server.h:49
Represents an HTTP response.
Definition: http_msg.h:383
virtual pplx::task< void > respond(http::http_response response)=0
Asynchronously sends the specified http response.
The web namespace contains functionality common to multiple protocols like HTTP and WebSockets...
Definition: base_uri.h:37
The Parallel Patterns Library (PPL) task class. A task object represents work that can be executed as...
Definition: pplxtasks.h:4173
virtual pplx::task< void > start()=0
Start listening for incoming requests.
virtual pplx::task< void > unregister_listener(_In_ web::http::experimental::listener::details::http_listener_impl *pListener)=0
Unregisters an http listener.
virtual pplx::task< void > stop()=0
Stop processing and listening for incoming requests.
Internal class for pointer to implementation design pattern.
Definition: http_listener.h:171
Interface http listeners interact with for receiving and responding to http requests.
Definition: http_server.h:42
virtual pplx::task< void > register_listener(_In_ web::http::experimental::listener::details::http_listener_impl *pListener)=0
Registers an http listener.