Content

io.eezo.http.client.Content
final case class Content

A request body once it has been encoded for the wire: bytes that know their media type.

The two travel together because a body and its Content-Type written apart can disagree, and the server reads the bytes by the type it is told. The constructor is closed for the same reason: an application gets a Content from an encoder such as Http.form and hands it to post, so the type it carries is always the one its bytes were written in. The bytes are the array that will be sent, so two Contents are not compared by what they hold.

Attributes

Source
Http.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

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