HttpMessageBase

trait HttpMessageBase[Raw]
class Object
trait Matchable
class Any
trait HttpMessage[Raw]
class Request
class Response

Value members

Concrete methods

inline def withContentOf[A](a: A): Raw

Set the content body using a given object. Encoding can be JSON or MsgPack based on Content-Type header.

Set the content body using a given object. Encoding can be JSON or MsgPack based on Content-Type header.

inline def withContentOf[A](a: A, codecFactory: MessageCodecFactory): Raw

Set the content body using a given object and codec factory. Encoding can be JSON or MsgPack based on Content-Type header.

Set the content body using a given object and codec factory. Encoding can be JSON or MsgPack based on Content-Type header.

inline def withJsonOf[A](a: A): Raw
inline def withJsonOf[A](a: A, codecFactory: MessageCodecFactory): Raw
inline def withMsgPackOf[A](a: A): Raw
inline def withMsgPackOf[A](a: A, codecFactory: MessageCodecFactory): Raw