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
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
val
defaultCorsSettings: CorsSettings
Default CORS settings to use for grpc-web
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
grpcWebHandler(handlers: PartialFunction[HttpRequest, Future[HttpResponse]]*)(implicit as: ClassicActorSystemProvider, corsSettings: CorsSettings = defaultCorsSettings): (HttpRequest) ⇒ Future[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 services, including pre-flight requests and request enforcement.
- If the request is for a handled service, is not a CORS pre-flight request, and has an invalid media type, then a _415: Unsupported Media Type_ response is produced.
- Otherwise 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
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()