HttpMessageBase

wvlet.airframe.http.HttpMessageBase
trait HttpMessageBase[Raw]

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait HttpMessage[Raw]
class Request
class Response

Members list

Concise view

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.

Attributes

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.

Attributes

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