C++ Rest SDK
The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services.
|
Class to implement HTTP server API on Windows. More...
#include <http_server_httpsys.h>
Public Member Functions | |
http_windows_server () | |
Constructs a http_windows_server. More... | |
~http_windows_server () | |
Releases resources held. More... | |
virtual pplx::task< void > | start () |
Start listening for incoming requests. More... | |
virtual pplx::task< void > | register_listener (_In_ web::http::experimental::listener::details::http_listener_impl *pListener) |
Registers an http listener. More... | |
virtual pplx::task< void > | unregister_listener (_In_ web::http::experimental::listener::details::http_listener_impl *pListener) |
Unregisters an http listener. More... | |
virtual pplx::task< void > | stop () |
Stop processing and listening for incoming requests. More... | |
virtual pplx::task< void > | respond (http::http_response response) |
Asynchronously sends the specified http response. More... | |
Public Member Functions inherited from web::http::experimental::details::http_server | |
virtual | ~http_server () |
Release any held resources. More... | |
Friends | |
struct | details::windows_request_context |
Class to implement HTTP server API on Windows.
web::http::experimental::details::http_windows_server::http_windows_server | ( | ) |
Constructs a http_windows_server.
web::http::experimental::details::http_windows_server::~http_windows_server | ( | ) |
Releases resources held.
|
virtual |
Registers an http listener.
Implements web::http::experimental::details::http_server.
|
virtual |
Asynchronously sends the specified http response.
response | The http_response to send. |
Implements web::http::experimental::details::http_server.
|
virtual |
Start listening for incoming requests.
Implements web::http::experimental::details::http_server.
|
virtual |
Stop processing and listening for incoming requests.
Implements web::http::experimental::details::http_server.
|
virtual |
Unregisters an http listener.
Implements web::http::experimental::details::http_server.