object WebHandler
- Annotations
- @ApiMayChange()
- Source
- WebHandler.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- WebHandler
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
def
grpcWebHandler(handlers: List[Function[HttpRequest, CompletionStage[HttpResponse]]], as: ClassicActorSystemProvider, mat: Materializer, corsSettings: CorsSettings): Function[HttpRequest, CompletionStage[HttpResponse]]
Creates a
HttpRequest
toHttpResponse
handler for gRPC services that can be used in for exampleHttp().bind
for the generated partial function handlers:Creates a
HttpRequest
toHttpResponse
handler for gRPC services that can be used in for exampleHttp().bind
for the generated partial function handlers:- The generated handler supports the
application/grpc-web
andapplication/grpc-web-text
media types. - CORS is implemented for handled servives, including pre-flight requests and request enforcement.
- If the request s not a CORS pre-flight request, and has an invalid media type, then a _415: Unsupported Media Type_ response is produced.
- Otherise if the request is not handled by one of the provided handlers, a _404: Not Found_ response is produced.
- The generated handler supports the
-
def
grpcWebHandler(handlers: List[Function[HttpRequest, CompletionStage[HttpResponse]]], as: ClassicActorSystemProvider, mat: Materializer): Function[HttpRequest, CompletionStage[HttpResponse]]
Creates a
HttpRequest
toHttpResponse
handler for gRPC services that can be used in for exampleHttp().bindAndHandleAsync
for the generated partial function handlers:Creates a
HttpRequest
toHttpResponse
handler for gRPC services that can be used in for exampleHttp().bindAndHandleAsync
for the generated partial function handlers:- The generated handler supports the
application/grpc-web
andapplication/grpc-web-text
media types. - CORS is implemented for handled servives, including pre-flight requests and request enforcement.
- If the request s not a CORS pre-flight request, and has an invalid media type, then a _415: Unsupported Media Type_ response is produced.
- Otherise if the request is not handled by one of the provided handlers, a _404: Not Found_ response is produced.
- The generated handler supports the