ServiceHandler

akka.grpc.javadsl.ServiceHandler$
@ApiMayChange

Attributes

Source:
ServiceHandler.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

def concatOrNotFound(handlers: Function[HttpRequest, CompletionStage[HttpResponse]]*): Function[HttpRequest, CompletionStage[HttpResponse]]

This is an alias for handler.

This is an alias for handler.

Attributes

Source:
ServiceHandler.scala
def handler(handlers: Function[HttpRequest, CompletionStage[HttpResponse]]*): Function[HttpRequest, CompletionStage[HttpResponse]]

Creates a HttpRequest to HttpResponse handler for gRPC services that can be used in for example Http().bindAndHandleAsync for the generated partial function handlers:

Creates a HttpRequest to HttpResponse handler for gRPC services that can be used in for example Http().bindAndHandleAsync for the generated partial function handlers:

  • If the request is not handled by one of the provided handlers, a 404: Not Found response is produced.

Attributes

Source:
ServiceHandler.scala