akka.http.scaladsl.marshalling

Marshaller

object Marshaller extends GenericMarshallers with PredefinedToEntityMarshallers with PredefinedToResponseMarshallers with PredefinedToRequestMarshallers

Source
Marshaller.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Marshaller
  2. PredefinedToRequestMarshallers
  3. PredefinedToResponseMarshallers
  4. PredefinedToEntityMarshallers
  5. MultipartMarshallers
  6. GenericMarshallers
  7. LowPriorityToResponseMarshallerImplicits
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. implicit val ByteArrayMarshaller: ToEntityMarshaller[Array[Byte]]

  7. implicit val ByteStringMarshaller: ToEntityMarshaller[ByteString]

  8. implicit val CharArrayMarshaller: ToEntityMarshaller[Array[Char]]

  9. implicit val FormDataMarshaller: ToEntityMarshaller[FormData]

  10. implicit val HttpEntityMarshaller: ToEntityMarshaller[MessageEntity]

  11. implicit val StringMarshaller: ToEntityMarshaller[String]

  12. def apply[A, B](f: (ExecutionContext) ⇒ (A) ⇒ Future[List[Marshalling[B]]]): Marshaller[A, B]

    Creates a Marshaller from the given function.

  13. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  14. def byteArrayMarshaller(mediaType: MediaType): ToEntityMarshaller[Array[Byte]]

  15. def byteArrayMarshaller(mediaType: MediaType, charset: HttpCharset): ToEntityMarshaller[Array[Byte]]

  16. def byteStringMarshaller(mediaType: MediaType): ToEntityMarshaller[ByteString]

  17. def byteStringMarshaller(mediaType: MediaType, charset: HttpCharset): ToEntityMarshaller[ByteString]

  18. def charArrayMarshaller(mediaType: MediaType): ToEntityMarshaller[Array[Char]]

  19. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. implicit def eitherMarshaller[A1, A2, B](implicit m1: Marshaller[A1, B], m2: Marshaller[A2, B]): Marshaller[Either[A1, A2], B]

    Definition Classes
    GenericMarshallers
  21. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  22. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  23. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  24. implicit def fromMethodAndUriAndHeadersAndValue[T](implicit mt: ToEntityMarshaller[T]): TRM[(HttpMethod, Uri, Seq[HttpHeader], T)]

  25. implicit def fromMethodAndUriAndValue[S, T](implicit mt: ToEntityMarshaller[T]): TRM[(HttpMethod, Uri, T)]

  26. implicit val fromRequest: TRM[HttpRequest]

  27. implicit val fromResponse: Marshaller.TRM[HttpResponse]

  28. implicit val fromStatusCode: Marshaller.TRM[StatusCode]

  29. implicit def fromStatusCodeAndHeadersAndValue[T](implicit mt: ToEntityMarshaller[T]): Marshaller.TRM[(StatusCode, Seq[HttpHeader], T)]

  30. implicit def fromStatusCodeAndValue[S, T](implicit sConv: (S) ⇒ StatusCode, mt: ToEntityMarshaller[T]): Marshaller.TRM[(S, T)]

  31. implicit def fromStatusCodeConvertibleAndHeadersAndT[S, T](implicit sConv: (S) ⇒ StatusCode, mt: ToEntityMarshaller[T]): Marshaller.TRM[(S, Seq[HttpHeader], T)]

  32. def fromToEntityMarshaller[T](status: StatusCode = StatusCodes.OK, headers: Seq[HttpHeader] = Nil)(implicit m: ToEntityMarshaller[T]): ToResponseMarshaller[T]

  33. implicit def fromUri: TRM[Uri]

  34. implicit def futureMarshaller[A, B](implicit m: Marshaller[A, B]): Marshaller[Future[A], B]

    Definition Classes
    GenericMarshallers
  35. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  36. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  37. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  38. implicit def liftMarshaller[T](implicit m: ToEntityMarshaller[T]): ToResponseMarshaller[T]

  39. implicit def liftMarshallerConversion[T](m: ToEntityMarshaller[T]): ToResponseMarshaller[T]

  40. def multipartBoundaryLength: Int

    The length of randomly generated multipart boundaries (before base64 encoding).

    The length of randomly generated multipart boundaries (before base64 encoding). Can be overridden to configure.

    Attributes
    protected
    Definition Classes
    MultipartMarshallers
  41. def multipartBoundaryRandom: Random

    The random instance that is used to create multipart boundaries.

    The random instance that is used to create multipart boundaries. This can be overriden (e.g. in tests) to choose how a boundary is created.

    Attributes
    protected
    Definition Classes
    MultipartMarshallers
  42. implicit def multipartMarshaller[T <: Multipart](implicit log: LoggingAdapter = NoLogging): ToEntityMarshaller[T]

    Definition Classes
    MultipartMarshallers
  43. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  44. final def notify(): Unit

    Definition Classes
    AnyRef
  45. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  46. def oneOf[T, A, B](values: T*)(f: (T) ⇒ Marshaller[A, B]): Marshaller[A, B]

    Helper for creating a "super-marshaller" from a number of values and a function producing "sub-marshallers" from these values.

    Helper for creating a "super-marshaller" from a number of values and a function producing "sub-marshallers" from these values. Content-negotiation determines, which "sub-marshaller" eventually gets to do the job.

  47. def oneOf[A, B](marshallers: Marshaller[A, B]*): Marshaller[A, B]

    Helper for creating a "super-marshaller" from a number of "sub-marshallers".

    Helper for creating a "super-marshaller" from a number of "sub-marshallers". Content-negotiation determines, which "sub-marshaller" eventually gets to do the job.

  48. def opaque[A, B](marshal: (A) ⇒ B): Marshaller[A, B]

    Helper for creating a synchronous Marshaller to non-negotiable content from the given function.

  49. implicit def optionMarshaller[A, B](implicit m: Marshaller[A, B], empty: EmptyValue[B]): Marshaller[Option[A], B]

    Definition Classes
    GenericMarshallers
  50. def randomBoundary(): String

    The method used to create boundaries in multipartMarshaller.

    The method used to create boundaries in multipartMarshaller. Can be overridden to create custom boundaries.

    Attributes
    protected
    Definition Classes
    MultipartMarshallers
  51. def strict[A, B](f: (A) ⇒ Marshalling[B]): Marshaller[A, B]

    Helper for creating a Marshaller using the given function.

  52. def stringMarshaller(mediaType: MediaType): ToEntityMarshaller[String]

  53. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  54. implicit def throwableMarshaller[T]: Marshaller[Throwable, T]

    Definition Classes
    GenericMarshallers
  55. def toString(): String

    Definition Classes
    AnyRef → Any
  56. implicit def tryMarshaller[A, B](implicit m: Marshaller[A, B]): Marshaller[Try[A], B]

    Definition Classes
    GenericMarshallers
  57. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  58. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  59. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  60. def withFixedCharset[A, B](mediaType: MediaType, charset: HttpCharset)(marshal: (A) ⇒ B): Marshaller[A, B]

    Helper for creating a synchronous Marshaller to content with a fixed charset from the given function.

  61. def withOpenCharset[A, B](mediaType: MediaType)(marshal: (A, HttpCharset) ⇒ B): Marshaller[A, B]

    Helper for creating a synchronous Marshaller to content with a negotiable charset from the given function.

Inherited from MultipartMarshallers

Inherited from GenericMarshallers

Inherited from AnyRef

Inherited from Any

Ungrouped