object akkaHttp
Automatic to and from CBOR and/or JSON marshalling/unmarshalling using in-scope borer Encoders / Decoders.
- Alphabetic
- By Inheritance
- akkaHttp
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
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 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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
- 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.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- implicit def defaultBorerJsonStreamMarshaller[T](implicit arg0: ToEntityMarshaller[T], arg1: ClassTag[T]): ToEntityMarshaller[Source[T, NotUsed]]
- implicit def defaultBorerJsonStreamUnmarshaller[T](implicit arg0: Decoder[T]): FromEntityUnmarshaller[Source[T, NotUsed]]
- implicit def defaultBorerMarshaller[T](implicit arg0: Encoder[T]): ToEntityMarshaller[T]
- implicit def defaultBorerUnmarshaller[T](implicit arg0: Decoder[T]): FromEntityUnmarshaller[T]
- 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
- 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(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()