env_to_headers (env, input) source
converts a Rack env
into an HTTP header buffer If input
is a string, this appends input
to the header buffer so the client can avoid extra writes. If input is an IO-like object, it is returned as the second element of an array.
This, the following code always works and may be used to clobber input
if it is merged into buf
buf, input = env_to_headers(env, input)
request_uri (env) source
regenerates the request_uri
from a Rack env
mail archives: https://yhbt.net/http_spew-public/ public: http_spew-public@yhbt.net source code: git clone https://yhbt.net/http_spew.git