Package org.apache.pekko.http.scaladsl
Class Http.IncomingConnection
java.lang.Object
org.apache.pekko.http.scaladsl.Http.IncomingConnection
- All Implemented Interfaces:
Serializable,scala.Equals,scala.Product
- Enclosing class:
- Http
public static final class Http.IncomingConnection
extends Object
implements scala.Product, Serializable
Represents one accepted incoming HTTP connection.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionIncomingConnection(InetSocketAddress localAddress, InetSocketAddress remoteAddress, org.apache.pekko.stream.scaladsl.Flow<HttpResponse, HttpRequest, ServerTerminator> _flow) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.pekko.stream.scaladsl.Flow<HttpResponse,HttpRequest, ServerTerminator> _flow()org.apache.pekko.stream.scaladsl.Flow<HttpResponse,HttpRequest, org.apache.pekko.NotUsed> flow()<Mat> MathandleWith(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.voidhandleWithAsyncHandler(scala.Function1<HttpRequest, scala.concurrent.Future<HttpResponse>> handler, int parallelism, org.apache.pekko.stream.Materializer fm) Handles the connection with the given handler function.voidhandleWithSyncHandler(scala.Function1<HttpRequest, HttpResponse> handler, org.apache.pekko.stream.Materializer fm) Handles the connection with the given handler function.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface scala.Equals
canEqual, equalsMethods inherited from interface scala.Product
productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
-
Constructor Details
-
IncomingConnection
public IncomingConnection(InetSocketAddress localAddress, InetSocketAddress remoteAddress, org.apache.pekko.stream.scaladsl.Flow<HttpResponse, HttpRequest, ServerTerminator> _flow)
-
-
Method Details
-
localAddress
-
remoteAddress
-
_flow
-
flow
public org.apache.pekko.stream.scaladsl.Flow<HttpResponse,HttpRequest, flow()org.apache.pekko.NotUsed> -
handleWith
public <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.- Parameters:
handler- (undocumented)fm- (undocumented)- Returns:
- (undocumented)
-
handleWithSyncHandler
public void handleWithSyncHandler(scala.Function1<HttpRequest, HttpResponse> handler, org.apache.pekko.stream.Materializer fm) Handles the connection with the given handler function.- Parameters:
handler- (undocumented)fm- (undocumented)
-
handleWithAsyncHandler
public 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.- Parameters:
handler- (undocumented)parallelism- (undocumented)fm- (undocumented)
-