State
private enum State
The state of the HTTP connection.
inactive
|
|
v
+--- <Another layer available?> <---+
| | |
| | |
| v |
| shouldEstablishTunnelConnection |
| | |
| | |
| v |
| expectTunnelConnectionEstablished |
| | |
| +-----------------+
|
+-----------------+
|
v
shouldSendHttpRequest
|
|
v
expectHttpResponse
-
The connection has not been established.
Declaration
Swift
case inactive
-
A connection to the proxy server has been established. This state indicates that a HTTP CONNECT request to the next hop (the next layer or the target) should be made.
Declaration
Swift
case shouldEstablishTunnelConnection
-
This signal to wait for a HTTP response for a HTTP CONNECT request that was already made.
Declaration
Swift
case expectTunnelConnectionEstablished
-
The tunnel to the target has been successfully established. This signals that we can now make the actual HTTP request.
Declaration
Swift
case shouldSendHttpRequest
-
This signals, that we wait for the HTTP response of the actual request.
Declaration
Swift
case expectHttpResponse