Entity

scamper.http.Entity
See theEntity companion trait
object Entity

Provides factory for Entity.

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Entity.type

Members list

Value members

Concrete methods

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

Creates entity from supplied bytes.

Creates entity from supplied bytes.

Attributes

def apply(in: InputStream): Entity

Creates entity from supplied input stream.

Creates entity from supplied input stream.

Attributes

def apply(in: Reader): Entity

Creates entity from supplied reader.

Creates entity from supplied reader.

Attributes

def apply(writer: BodyWriter): Entity

Creates entity from supplied body writer.

Creates entity from supplied body writer.

Attributes

def apply(file: File): Entity

Creates entity from supplied file.

Creates entity from supplied file.

Attributes

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

Creates entity from supplied text.

Creates entity from supplied text.

Attributes

def apply(query: QueryString): Entity

Creates entity from supplied query string.

Creates entity from supplied query string.

Attributes

Note

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

def empty: Entity

Gets empty entity.

Gets empty entity.

Attributes