This is the base class actually capable of making a normal HTTP request
Stores any exception that was raised in another thread (e.g. ContentMD5 or InputSpray write drivers).
Stores the Rack response (a 3-element Array) on success
May be called by IO.select or for use with IO#wait_*able
new (env, input, sock, allow = nil) 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 Socket object
close () source
Called by Rack servers after writing a response to a client
each () { |buf| ... } source
Called by Rack servers to write the response to a client
error= (exception) source
Used internally by various HTTP_Spew
elements to report errors across different Threads and Fibers
read_response () 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.
resume () source
returns a 3-element Rack response array on completion returns :wait_readable or :wait_writable if busy
run (timeout) source
returns a 3-element Rack response array on successful completion returns an Exception if one was raised
start_sock (ai) source
Included modules: HTTP_Spew::Headers
Pages
Classes
Methods
mail archives: https://yhbt.net/http_spew-public/ public: http_spew-public@yhbt.net source code: git clone https://yhbt.net/http_spew.git