- close
- connect
- getHttpMinorVersion
Returns the minor HTTP version that should be used for future requests on this
connection. Either 0
- getIdleStartTimeNs
Returns the time in ns when this connection became idle. Undefined if this
connection is not idle.
- getRoute
Returns the route used by this connection.
- getSocket
Returns the socket that this connection uses, or null if the connection is not
currently connected.
- isAlive
Returns true if this connection is alive.
- isConnected
Returns true if #connect has been attempted on this connection.
- isExpired
Returns true if this connection has been idle for longer than
keepAliveDurationNs.
- isIdle
Returns true if this connection is idle.
- isReadable
Returns true if we are confident that we can read data from this connection.
This is more expensive
- isSpdy
Returns true if this is a SPDY connection. Such connections can be used in
multiple HTTP requests si