public static final class Http.IncomingConnection
extends java.lang.Object
implements scala.Product, java.io.Serializable
Constructor and Description |
---|
IncomingConnection(java.net.InetSocketAddress localAddress,
java.net.InetSocketAddress remoteAddress,
org.apache.pekko.stream.scaladsl.Flow<HttpResponse,HttpRequest,ServerTerminator> _flow) |
Modifier and Type | Method and Description |
---|---|
org.apache.pekko.stream.scaladsl.Flow<HttpResponse,HttpRequest,ServerTerminator> |
_flow() |
org.apache.pekko.stream.scaladsl.Flow<HttpResponse,HttpRequest,org.apache.pekko.NotUsed> |
flow() |
<Mat> Mat |
handleWith(org.apache.pekko.stream.scaladsl.Flow<HttpRequest,HttpResponse,Mat> handler,
org.apache.pekko.stream.Materializer fm)
Handles the connection with the given flow, which is materialized exactly once
and the respective materialization result returned.
|
void |
handleWithAsyncHandler(scala.Function1<HttpRequest,scala.concurrent.Future<HttpResponse>> handler,
int parallelism,
org.apache.pekko.stream.Materializer fm)
Handles the connection with the given handler function.
|
void |
handleWithSyncHandler(scala.Function1<HttpRequest,HttpResponse> handler,
org.apache.pekko.stream.Materializer fm)
Handles the connection with the given handler function.
|
java.net.InetSocketAddress |
localAddress() |
java.net.InetSocketAddress |
remoteAddress() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public IncomingConnection(java.net.InetSocketAddress localAddress, java.net.InetSocketAddress remoteAddress, org.apache.pekko.stream.scaladsl.Flow<HttpResponse,HttpRequest,ServerTerminator> _flow)
public java.net.InetSocketAddress localAddress()
public java.net.InetSocketAddress remoteAddress()
public org.apache.pekko.stream.scaladsl.Flow<HttpResponse,HttpRequest,ServerTerminator> _flow()
public org.apache.pekko.stream.scaladsl.Flow<HttpResponse,HttpRequest,org.apache.pekko.NotUsed> flow()
public <Mat> Mat handleWith(org.apache.pekko.stream.scaladsl.Flow<HttpRequest,HttpResponse,Mat> handler, org.apache.pekko.stream.Materializer fm)
handler
- (undocumented)fm
- (undocumented)public void handleWithSyncHandler(scala.Function1<HttpRequest,HttpResponse> handler, org.apache.pekko.stream.Materializer fm)
handler
- (undocumented)fm
- (undocumented)public void handleWithAsyncHandler(scala.Function1<HttpRequest,scala.concurrent.Future<HttpResponse>> handler, int parallelism, org.apache.pekko.stream.Materializer fm)
handler
- (undocumented)parallelism
- (undocumented)fm
- (undocumented)