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.
|
Singleton class used to register for http requests and send responses. More...
#include <http_server_api.h>
Static Public Member Functions | |
static bool __cdecl | has_listener () |
Returns whether or not any listeners are registered. More... | |
static void __cdecl | register_server_api (std::unique_ptr< http_server > server_api) |
Registers a HTTP server API. More... | |
static void __cdecl | unregister_server_api () |
Clears the http server API. More... | |
static pplx::task< void > __cdecl | register_listener (_In_ web::http::experimental::listener::details::http_listener_impl *pListener) |
Registers a listener for HTTP requests and starts receiving. More... | |
static pplx::task< void > __cdecl | unregister_listener (_In_ web::http::experimental::listener::details::http_listener_impl *pListener) |
Unregisters the given listener and stops listening for HTTP requests. More... | |
static http_server *__cdecl | server_api () |
Gets static HTTP server API. Could be null if no registered listeners. More... | |
Singleton class used to register for http requests and send responses.
The lifetime is tied to http listener registration. When the first listener registers an instance is created and when the last one unregisters the receiver stops and is destroyed. It can be started back up again if listeners are again registered.
|
static |
Returns whether or not any listeners are registered.
|
static |
Registers a listener for HTTP requests and starts receiving.
|
static |
Registers a HTTP server API.
|
static |
Gets static HTTP server API. Could be null if no registered listeners.
|
static |
Unregisters the given listener and stops listening for HTTP requests.
|
static |
Clears the http server API.