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.
Public Member Functions | List of all members
web::http::experimental::details::http_server Class Referenceabstract

Interface http listeners interact with for receiving and responding to http requests. More...

#include <http_server.h>

Inheritance diagram for web::http::experimental::details::http_server:
web::http::experimental::details::http_windows_server web::http::experimental::listener::http_linux_server

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...
 

Detailed Description

Interface http listeners interact with for receiving and responding to http requests.

Constructor & Destructor Documentation

virtual web::http::experimental::details::http_server::~http_server ( )
inlinevirtual

Release any held resources.

Member Function Documentation

virtual pplx::task<void> web::http::experimental::details::http_server::register_listener ( _In_ web::http::experimental::listener::details::http_listener_impl pListener)
pure virtual

Registers an http listener.

Implemented in web::http::experimental::details::http_windows_server.

virtual pplx::task<void> web::http::experimental::details::http_server::respond ( http::http_response  response)
pure virtual

Asynchronously sends the specified http response.

Parameters
responseThe http_response to send.
Returns
A operation which is completed once the response has been sent.

Implemented in web::http::experimental::listener::http_linux_server, and web::http::experimental::details::http_windows_server.

virtual pplx::task<void> web::http::experimental::details::http_server::start ( )
pure virtual
virtual pplx::task<void> web::http::experimental::details::http_server::stop ( )
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.

virtual pplx::task<void> web::http::experimental::details::http_server::unregister_listener ( _In_ web::http::experimental::listener::details::http_listener_impl pListener)
pure virtual

Unregisters an http listener.

Implemented in web::http::experimental::details::http_windows_server.


The documentation for this class was generated from the following file: