|my $env = $req->env()||
Obtain an environment hash. This hash contains the same entries as for a PSGI
handler environment hash. See Feersum for details on the contents.
This is a method instead of a parameter so that future versions of Feersum can request a slice of the hash for speed.
|my $w = $req->start_streaming($code, \@headers)||A full HTTP header section is sent with Transfer-Encoding: chunked (or Connection: close for HTTP/1.0 clients).|
|$req->send_response($code, \@headers, $body)|
|$req->send_response($code, \@headers, \@body)||
Respond with a full HTTP header (including Content-Length) and body.
Returns the number of bytes calculated for the body.
Force the response to use HTTP/1.0 or HTTP/1.1, respectively.
For streaming under HTTP/1.1 Transfer-Encoding: chunked is used, otherwise a Connection: close stream-style is used (with the usual non-guarantees about delivery). You may know about certain user-agents that support/dont-support T-E:chunked, so this is how you can override that.
Supposedly clients and a lot of proxies support the Connection: close stream-style, see support in Varnish at http://www.varnish-cache.org/trac/ticket/400
|$req->fileno||The socket file-descriptor number for this connection.|
|$req->response_guard($guard)||Register a guard to be triggered when the response is completely sent and the socket is closed. A guard in this context is some object that will do something interesting in its DESTROY/DEMOLISH method. For example, Guard.|
Jeremy Stashewsky, email@example.com
Copyright (C) 2010 by Jeremy Stashewsky & Socialtext Inc.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.7 or, at your option, any later version of Perl 5 you may have available.
|perl v5.20.3||FEERSUM::CONNECTION (3)||2015-08-12|