Packages

object akkaHttp

Automatic to and from CBOR and/or JSON marshalling/unmarshalling using in-scope borer Encoders / Decoders.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. akkaHttp
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. type CborDecodingSetup = Api[Input[Array[Byte]], DecodingConfig]
  2. type CborEncodingSetup = Api[EncodingConfig]
  3. type JsonDecodingSetup = Api[Input[Array[Byte]], DecodingConfig]
  4. type JsonEncodingSetup = Api[EncodingConfig]

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def borerCborMarshaller[T](cborContentType: ContentType = MediaTypes.`application/cbor`, configureCbor: (CborEncodingSetup) => CborEncodingSetup = identity)(implicit arg0: Encoder[T]): ToEntityMarshaller[T]

    Provides a ToEntityMarshaller for T given an implicit borer Encoder for T.

    Provides a ToEntityMarshaller for T given an implicit borer Encoder for T. Supports only CBOR with the given MediaType.

  6. def borerCborUnmarshaller[T](cborMediaType: MediaType = MediaTypes.`application/cbor`, configureCbor: (CborDecodingSetup) => CborDecodingSetup = identity)(implicit arg0: Decoder[T]): FromEntityUnmarshaller[T]

    Provides a FromEntityUnmarshaller for T given an implicit borer Decoder for T.

    Provides a FromEntityUnmarshaller for T given an implicit borer Decoder for T. Supports only CBOR with the given MediaType.

  7. def borerJsonMarshaller[T](jsonContentType: ContentType = MediaTypes.`application/json`, configureJson: (JsonEncodingSetup) => JsonEncodingSetup = identity)(implicit arg0: Encoder[T]): ToEntityMarshaller[T]

    Provides a ToEntityMarshaller for T given an implicit borer Encoder for T.

    Provides a ToEntityMarshaller for T given an implicit borer Encoder for T. Supports only JSON with the given MediaType.

  8. def borerJsonUnmarshaller[T](jsonMediaType: MediaType = MediaTypes.`application/json`, configureJson: (JsonDecodingSetup) => JsonDecodingSetup = identity)(implicit arg0: Decoder[T]): FromEntityUnmarshaller[T]

    Provides a FromEntityUnmarshaller for T given an implicit borer Decoder for T.

    Provides a FromEntityUnmarshaller for T given an implicit borer Decoder for T. Supports only JSON with the given MediaType.

  9. def borerMarshaller[T](cborContentType: ContentType = MediaTypes.`application/cbor`, jsonContentType: ContentType = MediaTypes.`application/json`, configureCbor: (CborEncodingSetup) => CborEncodingSetup = identity, configureJson: (JsonEncodingSetup) => JsonEncodingSetup = identity)(implicit arg0: Encoder[T]): ToEntityMarshaller[T]

    Provides a ToEntityMarshaller for T given an implicit borer Encoder for T.

    Provides a ToEntityMarshaller for T given an implicit borer Encoder for T. Supports both CBOR and JSON with the given MediaTypes. Content negotiation will determine, whether CBOR or JSON is produced. If the client accepts both the marshaller will produce CBOR.

  10. def borerStreamMarshaller[T](ess: EntityStreamingSupport)(implicit marshaller: ToEntityMarshaller[T], classTag: ClassTag[T]): ToEntityMarshaller[Source[T, NotUsed]]

    Provides a ToEntityMarshaller for streams of T given an implicit borer Encoder for T.

    Provides a ToEntityMarshaller for streams of T given an implicit borer Encoder for T. Supports JSON or CSV, depending on the given EntityStreamingSupport.

  11. def borerStreamUnmarshaller[T](ess: EntityStreamingSupport)(implicit arg0: Decoder[T]): FromEntityUnmarshaller[Source[T, NotUsed]]

    Provides a FromEntityUnmarshaller which produces streams of T given an implicit borer Decoder for T.

    Provides a FromEntityUnmarshaller which produces streams of T given an implicit borer Decoder for T. Supports JSON or CSV, depending on the given EntityStreamingSupport.

    See also

    https://doc.akka.io/api/akka-http/10.1.9/akka/http/scaladsl/common/EntityStreamingSupport.html

  12. def borerUnmarshaller[T](cborMediaType: MediaType = MediaTypes.`application/cbor`, jsonMediaType: MediaType = MediaTypes.`application/json`, configureCbor: (CborDecodingSetup) => CborDecodingSetup = identity, configureJson: (JsonDecodingSetup) => JsonDecodingSetup = identity)(implicit arg0: Decoder[T]): FromEntityUnmarshaller[T]

    Provides a FromEntityUnmarshaller for T given an implicit borer Decoder for T.

    Provides a FromEntityUnmarshaller for T given an implicit borer Decoder for T. Supports both CBOR and JSON with the given MediaTypes.

  13. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  14. implicit def defaultBorerJsonStreamMarshaller[T](implicit arg0: ToEntityMarshaller[T], arg1: ClassTag[T]): ToEntityMarshaller[Source[T, NotUsed]]
  15. implicit def defaultBorerJsonStreamUnmarshaller[T](implicit arg0: Decoder[T]): FromEntityUnmarshaller[Source[T, NotUsed]]
  16. implicit def defaultBorerMarshaller[T](implicit arg0: Encoder[T]): ToEntityMarshaller[T]
  17. implicit def defaultBorerUnmarshaller[T](implicit arg0: Decoder[T]): FromEntityUnmarshaller[T]
  18. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  20. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  21. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  28. def toString(): String
    Definition Classes
    AnyRef → Any
  29. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  30. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  31. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped