trait AkkaHttpAdapter extends AnyRef
Akka-http adapter for caliban with pluggable json backend.
There are two ways to use it:
1) Create the adapter manually (using AkkaHttpAdapter.apply and explicitly specify backend (recommended way):
val adapter = AkkaHttpAdapter(new CirceJsonBackend) adapter.makeHttpService(interpreter)
2) Mix in an all-included
trait, like caliban.interop.circe.AkkaHttpCirceAdapter:
class MyApi extends AkkaHttpCirceAdapter { // adapter is provided by the mixin adapter.makeHttpService(interpreter) }
- Note
Since all json backend dependencies are optional, you have to explicitly specify a corresponding dependency in your build (see specific backends for details).
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- AkkaHttpAdapter
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Abstract Value Members
- abstract def json: JsonBackend
Concrete 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(classOf[java.lang.CloneNotSupportedException]) @native()
- def completeRequest[R, E](interpreter: GraphQLInterpreter[R, E], skipValidation: Boolean = false, enableIntrospection: Boolean = true, contextWrapper: ContextWrapper = ContextWrapper.empty)(request: GraphQLRequest)(implicit ec: ExecutionContext, runtime: Runtime[R]): Route
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def makeHttpService[R, E](interpreter: GraphQLInterpreter[R, E], skipValidation: Boolean = false, enableIntrospection: Boolean = true, contextWrapper: ContextWrapper = ContextWrapper.empty)(implicit ec: ExecutionContext, runtime: Runtime[R]): Route
- def makeWebSocketService[R, E](interpreter: GraphQLInterpreter[R, E], skipValidation: Boolean = false, enableIntrospection: Boolean = true, keepAliveTime: Option[Duration] = None)(implicit ec: ExecutionContext, runtime: Runtime[R], materializer: Materializer): Route
- 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()
- implicit def requestUnmarshaller: FromEntityUnmarshaller[GraphQLRequest]
- 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(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()