Json

io.eezo.http.Body.Json
final case class Json(text: String)

JSON, already serialized. A case of its own rather than Bytes with a header beside it, because what a body is decides how it goes out: the server encodes it as UTF-8, the only encoding RFC 8259 allows between systems, and names it JSON unless the response already names a type of its own, and nothing that frames a page reaches into it. Text rather than a value, because eezo serializes nothing an application owns: the serializer is the application's.

Attributes

Source
Response.scala

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala