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.
|
Interface http listeners interact with for receiving and responding to http requests. More...
#include <http_server.h>
Public Member Functions | |
virtual | ~http_server () |
Release any held resources. More... | |
virtual pplx::task< void > | start ()=0 |
Start listening for incoming requests. More... | |
virtual pplx::task< void > | register_listener (_In_ web::http::experimental::listener::details::http_listener_impl *pListener)=0 |
Registers an http listener. More... | |
virtual pplx::task< void > | unregister_listener (_In_ web::http::experimental::listener::details::http_listener_impl *pListener)=0 |
Unregisters an http listener. More... | |
virtual pplx::task< void > | stop ()=0 |
Stop processing and listening for incoming requests. More... | |
virtual pplx::task< void > | respond (http::http_response response)=0 |
Asynchronously sends the specified http response. More... | |
Interface http listeners interact with for receiving and responding to http requests.
|
inlinevirtual |
Release any held resources.
|
pure virtual |
Registers an http listener.
Implemented in web::http::experimental::details::http_windows_server.
|
pure virtual |
Asynchronously sends the specified http response.
response | The http_response to send. |
Implemented in web::http::experimental::listener::http_linux_server, and web::http::experimental::details::http_windows_server.
|
pure virtual |
Start listening for incoming requests.
Implemented in web::http::experimental::listener::http_linux_server, and web::http::experimental::details::http_windows_server.
|
pure virtual |
Stop processing and listening for incoming requests.
Implemented in web::http::experimental::listener::http_linux_server, and web::http::experimental::details::http_windows_server.
|
pure virtual |
Unregisters an http listener.
Implemented in web::http::experimental::details::http_windows_server.