Parent

Included Modules

HTTP_Spew::Request

This is the base class actually capable of making a normal HTTP request

Attributes

error[R]

Stores any exception that was raised in another thread (e.g. ContentMD5 or InputSpray write drivers).

response[R]

Stores the Rack response (a 3-element Array) on success

to_io[R]

May be called by some Rack servers such as Rainbows! to bypass to_path calls and avoid path lookups.

Public Class Methods

new(env, input, sock, allow = nil) view method source

Creates a new Request based on a Rack env and input object and prepares it for writing to sock. input supercedes env since it may be an alternate IO object (such as one filtered through HTTP_Spew::ContentMD5.

sock may be the String representing an address created with Socket.pack_sockaddr_un or Socket.pack_sockaddr_in, or it may be an actual IO object with Kgio::SocketMethods mixed in (e.g. Kgio::Socket)

Public Instance Methods

Called by Rack servers after writing a response to a client

Called by Rack servers to write the response to a client

error=(exception) view method source

Used internally by various HTTP_Spew elements to report errors across different Threads and Fibers

read_response() view method source

returns a 3-element Rack response array on completion returns :wait_readable or :wait_writable if busy Users do not need to call this directly, resume will return the result of this.

returns a 3-element Rack response array on completion returns :wait_readable or :wait_writable if busy

run(timeout) view method source

returns a 3-element Rack response array on successful completion returns an Exception if one was raised

Used by some Rack-compatible servers to optimize transfers by using IO.copy_stream

Originally generated with the Darkfish Rdoc Generator 2, modified by wrongdoc.