IncomingConnection

akka.http.javadsl.IncomingConnection

Represents one accepted incoming HTTP connection.

Attributes

Source
IncomingConnection.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def flow: Flow[HttpResponse, HttpRequest, NotUsed]

A flow representing the incoming requests and outgoing responses for this connection.

A flow representing the incoming requests and outgoing responses for this connection.

Use Flow.join or one of the handleXXX methods to consume handle requests on this connection.

Attributes

Source
IncomingConnection.scala
def handleWith[Mat](handler: Flow[HttpRequest, HttpResponse, Mat], materializer: Materializer): Mat

Handles the connection with the given flow, which is materialized exactly once and the respective materialization result returned.

Handles the connection with the given flow, which is materialized exactly once and the respective materialization result returned.

Attributes

Source
IncomingConnection.scala
def handleWithAsyncHandler(handler: Function[HttpRequest, CompletionStage[HttpResponse]], materializer: Materializer): Unit

Handles the connection with the given handler function.

Handles the connection with the given handler function.

Attributes

Source
IncomingConnection.scala
def handleWithAsyncHandler(handler: Function[HttpRequest, CompletionStage[HttpResponse]], parallelism: Int, materializer: Materializer): Unit

Handles the connection with the given handler function.

Handles the connection with the given handler function.

Attributes

Source
IncomingConnection.scala
def handleWithSyncHandler(handler: Function[HttpRequest, HttpResponse], materializer: Materializer): Unit

Handles the connection with the given handler function.

Handles the connection with the given handler function.

Attributes

Source
IncomingConnection.scala
def localAddress: InetSocketAddress

The local address of this connection.

The local address of this connection.

Attributes

Source
IncomingConnection.scala
def remoteAddress: InetSocketAddress

The address of the remote peer.

The address of the remote peer.

Attributes

Source
IncomingConnection.scala