module Body

Nested Classes and Modules

class Buffered

A body which buffers all its contents.

class Completable

Invokes a callback once the body has completed, either successfully or due to an error.

class ZStream

A body which compresses or decompresses the contents using the DEFLATE or GZIP algorithm.

class Deflate

A body which compresses the contents using the DEFLATE or GZIP algorithm.

class Digestable

Invokes a callback once the body has finished reading.

class File

A body which reads from a file.

class Head

Represents a body suitable for HEAD requests, in other words, a body that is empty and has a known length.

class Inflate

A body which decompresses the contents using the DEFLATE or GZIP algorithm.

class Readable

Represents a readable input streams.

module Reader

General operations for interacting with a request or response body.

class Rewindable

A body which buffers all its contents as it is read.

class Stream

The input stream is an IO-like object which contains the raw HTTP POST data. When applicable, its external encoding must be "ASCII-8BIT" and it must be opened in binary mode, for Ruby 1.9 compatibility. The input stream must respond to gets, each, read and rewind.

module Streamable

A body that invokes a block that can read and write to a stream.

class Wrapper

Wrapping body instance. Typically you'd override #read.

class Writable

A dynamic body which you can write to and read from.