Sane C++ Libraries
C++ Platform Abstraction Libraries
Loading...
Searching...
No Matches
SC::HttpAsyncServerTransportSetup Struct Reference

Mutable transport setup view used by HttpAsyncServer after accepting a TCP socket. More...

#include <HttpAsyncServer.h>

Public Attributes

HttpConnection * connection = nullptr
 
AsyncEventLoop * eventLoop = nullptr
 
Function< void(Result)> complete
 
Function< void(Result)> fail
 

Detailed Description

Mutable transport setup view used by HttpAsyncServer after accepting a TCP socket.

The default setup keeps connection using its socket streams. A custom setup can install alternate active streams with HttpConnectionBase::setTransportStreams() and must call complete when the transport is ready for HTTP. After successful setup, the transport calls fail once if a terminal transport error must close the connection.


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