Entity

object Entity

Provides factory for Entity.

Companion
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply(bytes: Array[Byte]): Entity

Creates entity from supplied bytes.

Creates entity from supplied bytes.

def apply(in: InputStream): Entity

Creates entity from supplied input stream.

Creates entity from supplied input stream.

def apply(writer: OutputStream => Unit): Entity

Creates entity from supplied writer.

Creates entity from supplied writer.

Note

An output stream is passed to writer, and bytes written to the output stream are used to build entity.

def apply(file: File): Entity

Creates entity from supplied file.

Creates entity from supplied file.

def apply(text: String, charset: String): Entity

Creates entity from supplied text.

Creates entity from supplied text.

def apply(data: Map[String, Seq[String]]): Entity

Creates entity from supplied form data.

Creates entity from supplied form data.

Note

The data is encoded as application/x-www-form-urlencoded.

def apply(data: Seq[(String, String)]): Entity

Creates entity from supplied form data.

Creates entity from supplied form data.

Note

The data is encoded as application/x-www-form-urlencoded.

def apply(one: (String, String), more: (String, String)*): Entity

Creates entity from supplied form data.

Creates entity from supplied form data.

Note

The data is encoded as application/x-www-form-urlencoded.

def apply(query: QueryString): Entity

Creates entity from supplied query string.

Creates entity from supplied query string.

Note

The query string is encoded as application/x-www-form-urlencoded.

Gets empty entity.

Gets empty entity.