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 SummaryConstructorsConstructorDescriptionIncomingConnection(InetSocketAddress localAddress, InetSocketAddress remoteAddress, org.apache.pekko.stream.scaladsl.Flow<HttpResponse, HttpRequest, ServerTerminator> _flow) 
- 
Method SummaryModifier 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface scala.EqualscanEqual, equalsMethods inherited from interface scala.ProductproductArity, productElement, productElementName, productElementNames, productIterator, productPrefix
- 
Constructor Details- 
IncomingConnectionpublic IncomingConnection(InetSocketAddress localAddress, InetSocketAddress remoteAddress, org.apache.pekko.stream.scaladsl.Flow<HttpResponse, HttpRequest, ServerTerminator> _flow) 
 
- 
- 
Method Details- 
localAddress
- 
remoteAddress
- 
_flow
- 
flowpublic org.apache.pekko.stream.scaladsl.Flow<HttpResponse,HttpRequest, flow()org.apache.pekko.NotUsed> 
- 
handleWithpublic <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)
 
- 
handleWithSyncHandlerpublic 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)
 
- 
handleWithAsyncHandlerpublic 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)
 
 
-