object akkaHttp extends AkkaHttpCompat
Automatic to and from CBOR and/or JSON marshalling/unmarshalling using in-scope borer Encoders / Decoders.
- Alphabetic
- By Inheritance
- akkaHttp
- AkkaHttpCompat
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- type CborDecodingSetup = Api[DecodingConfig]
- Definition Classes
- AkkaHttpCompat
- type CborEncodingSetup = Api[EncodingConfig]
- Definition Classes
- AkkaHttpCompat
- type JsonDecodingSetup = Api[DecodingConfig]
- Definition Classes
- AkkaHttpCompat
- type JsonEncodingSetup = Api[EncodingConfig]
- Definition Classes
- AkkaHttpCompat
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
- final 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.
- Definition Classes
- AkkaHttpCompat
- final 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.
- Definition Classes
- AkkaHttpCompat
- implicit def borerFromEntityUnmarshaller[T](implicit arg0: Decoder[T]): FromEntityUnmarshaller[T]
Override with a parameterized call to the
borerUnmarshallermethod to apply a custom configuration.Override with a parameterized call to the
borerUnmarshallermethod to apply a custom configuration.- Definition Classes
- AkkaHttpCompat
- implicit final def borerFromMessageUnmarshaller[T](implicit arg0: Decoder[T]): FromMessageUnmarshaller[T]
- Definition Classes
- AkkaHttpCompat
- final 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.
- Definition Classes
- AkkaHttpCompat
- implicit def borerJsonStreamFromEntityUnmarshaller[T](implicit arg0: Decoder[T]): FromEntityUnmarshaller[Source[T, NotUsed]]
Override with a parameterized call to the
borerStreamUnmarshallermethod to apply a custom configuration.Override with a parameterized call to the
borerStreamUnmarshallermethod to apply a custom configuration.- Definition Classes
- AkkaHttpCompat
- implicit final def borerJsonStreamFromMessageUnmarshaller[T](implicit arg0: Decoder[T]): FromMessageUnmarshaller[Source[T, NotUsed]]
- Definition Classes
- AkkaHttpCompat
- implicit def borerJsonStreamToEntityMarshaller[T](implicit arg0: ToEntityMarshaller[T], arg1: ClassTag[T]): ToEntityMarshaller[Source[T, NotUsed]]
Override with a parameterized call to the
borerStreamMarshallermethod to apply a custom configuration.Override with a parameterized call to the
borerStreamMarshallermethod to apply a custom configuration.- Definition Classes
- AkkaHttpCompat
- implicit final def borerJsonStreamToResponseMarshaller[T](implicit arg0: ToEntityMarshaller[T], arg1: ClassTag[T]): ToResponseMarshaller[Source[T, NotUsed]]
- Definition Classes
- AkkaHttpCompat
- final 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.
- Definition Classes
- AkkaHttpCompat
- final def borerMarshaller[T](cborContentType: ContentType = MediaTypes.`application/cbor`, jsonContentType: ContentType = MediaTypes.`application/json`, configureCbor: (CborEncodingSetup) => CborEncodingSetup = identity, configureJson: (JsonEncodingSetup) => JsonEncodingSetup = identity, prefer: Target = Json)(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 formats with equal q-value the marshaller will produce whatever the
preferparameter specifies.- Definition Classes
- AkkaHttpCompat
- final 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.
- Definition Classes
- AkkaHttpCompat
- final 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.
- Definition Classes
- AkkaHttpCompat
- See also
https://doc.akka.io/api/akka-http/10.1.9/akka/http/scaladsl/common/EntityStreamingSupport.html
- implicit def borerToEntityMarshaller[T](implicit arg0: Encoder[T]): ToEntityMarshaller[T]
Override with a parameterized call to the
borerMarshallermethod to apply a custom configuration.Override with a parameterized call to the
borerMarshallermethod to apply a custom configuration.- Definition Classes
- AkkaHttpCompat
- implicit final def borerToResponseMarshaller[T](implicit arg0: Encoder[T]): ToResponseMarshaller[T]
- Definition Classes
- AkkaHttpCompat
- final 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.
- Definition Classes
- AkkaHttpCompat
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- 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() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.