PredefinedToResponseMarshallers

org.apache.pekko.http.scaladsl.marshalling.PredefinedToResponseMarshallers
See thePredefinedToResponseMarshallers companion object

Attributes

Companion
object
Source
PredefinedToResponseMarshallers.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Concrete methods

Implicits

Implicits

Creates a response for a status code. Does not support content-type negotiation but will return a response either with a text-plain entity containing the status.defaultMessage or an empty entity for status codes that don't allow a response.

Creates a response for a status code. Does not support content-type negotiation but will return a response either with a text-plain entity containing the status.defaultMessage or an empty entity for status codes that don't allow a response.

Attributes

Source
PredefinedToResponseMarshallers.scala

Creates a response from status code and headers. Does not support content-type negotiation but will return a response either with a text-plain entity containing the status.defaultMessage or an empty entity for status codes that don't allow a response.

Creates a response from status code and headers. Does not support content-type negotiation but will return a response either with a text-plain entity containing the status.defaultMessage or an empty entity for status codes that don't allow a response.

Attributes

Source
PredefinedToResponseMarshallers.scala
implicit def fromStatusCodeAndValue[S, T](implicit sConv: S => StatusCode, mt: ToEntityMarshaller[T]): ToResponseMarshaller[(S, T)]