Mutable transport setup view used by HttpAsyncClient after the TCP socket connects.
More...
#include <HttpAsyncClient.h>
Public Attributes | |
| HttpConnectionBase * | connection = nullptr |
| AsyncEventLoop * | eventLoop = nullptr |
| const HttpURLParser * | url = nullptr |
| SocketDescriptor::Handle | nativeSocket = SocketDescriptor::Invalid |
| Function< void(Result)> | complete |
| Function< void(Result)> | fail |
Mutable transport setup view used by HttpAsyncClient after the TCP socket connects.
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. The setup also exposes the connected socket handle for transport adapters. After successful setup, the transport calls fail at most once if a terminal transport error must fail the active request and close the connection. The callback is valid only until the transport close hook runs; the adapter must discard it from that hook and never invoke it after client close or connection reuse.