Packages

p

caliban

package caliban

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Type Members

  1. trait AkkaHttpAdapter extends AnyRef

    Akka-http adapter for caliban with pluggable json backend.

    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).

  2. trait JsonBackend extends AnyRef

    Very simple json backend adapter that uses raw strings to avoid specific AST dependencies in the interface

  3. trait WSMessage extends AnyRef

    Decouples AkkaHttpAdapter from specific json backend implementations

Value Members

  1. object AkkaHttpAdapter

Ungrouped