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.
Classes | Public Member Functions | Friends | List of all members
web::http::experimental::details::http_windows_server Class Reference

Class to implement HTTP server API on Windows. More...

#include <http_server_httpsys.h>

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

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
 

Detailed Description

Class to implement HTTP server API on Windows.

Constructor & Destructor Documentation

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.

Member Function Documentation

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

Registers an http listener.

Implements web::http::experimental::details::http_server.

virtual pplx::task<void> web::http::experimental::details::http_windows_server::respond ( http::http_response  response)
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.

Implements web::http::experimental::details::http_server.

virtual pplx::task<void> web::http::experimental::details::http_windows_server::start ( )
virtual

Start listening for incoming requests.

Implements web::http::experimental::details::http_server.

virtual pplx::task<void> web::http::experimental::details::http_windows_server::stop ( )
virtual

Stop processing and listening for incoming requests.

Implements web::http::experimental::details::http_server.

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

Unregisters an http listener.

Implements web::http::experimental::details::http_server.


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