Package io.servicetalk.http.api
Interface HttpConnectionContext
-
- All Superinterfaces:
AsyncCloseable
,ConnectionContext
,ConnectionInfo
,ListenableAsyncCloseable
- All Known Implementing Classes:
DelegatingHttpConnectionContext
,DelegatingHttpServiceContext
,HttpServiceContext
,TestHttpServiceContext
public interface HttpConnectionContext extends ConnectionContext
ConnectionContext
for HTTP.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.servicetalk.transport.api.ConnectionInfo
ConnectionInfo.Protocol
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HttpExecutionContext
executionContext()
Get theExecutionContext
for thisConnectionInfo
.HttpProtocolVersion
protocol()
Get theConnectionInfo.Protocol
for thisConnectionInfo
.-
Methods inherited from interface io.servicetalk.concurrent.api.AsyncCloseable
closeAsync, closeAsyncGracefully
-
Methods inherited from interface io.servicetalk.transport.api.ConnectionInfo
localAddress, remoteAddress, socketOption, sslSession
-
Methods inherited from interface io.servicetalk.concurrent.api.ListenableAsyncCloseable
onClose
-
-
-
-
Method Detail
-
executionContext
HttpExecutionContext executionContext()
Description copied from interface:ConnectionInfo
Get theExecutionContext
for thisConnectionInfo
.The
ExecutionContext.ioExecutor()
will represent the thread responsible for IO for thisConnectionInfo
. Note that this maybe different that what was used to create this object because at this time a specificIoExecutor
has been selected.- Specified by:
executionContext
in interfaceConnectionInfo
- Returns:
- the
ExecutionContext
for thisConnectionInfo
.
-
protocol
HttpProtocolVersion protocol()
Description copied from interface:ConnectionInfo
Get theConnectionInfo.Protocol
for thisConnectionInfo
.- Specified by:
protocol
in interfaceConnectionInfo
- Returns:
- the
ConnectionInfo.Protocol
for thisConnectionInfo
.
-
-