1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/lib/webrick
Tanaka Akira 50d85436f8 WEBrick::HTTPResponse create tempfile if required.
WEBrick::HTTPProxyServer implementes HTTP proxy using
WEBrick and Net::HTTP.
WEBrick accepts HTTP/1.0 clients and
Net::HTTP uses always HTTP/1.1.

However HTTP/1.1 supports chunked transfer coding HTTP/1.0 doesn't.

Chunked transfer coding doesn't require that
content-length before the content is sent.
But non-chunked transfer coding require content-length before
the content is sent.

So, when HTTP/1.0 clients connects WEBrick::HTTPProxyServer and
origin server returns chunked response,
WEBrick::HTTPProxyServer needs to store whole content to
know the length of it.

This patch do it using tempfile.
2019-07-11 09:18:41 +09:00
..
httpauth lib/*: Prefer require_relative over require. 2018-11-02 17:52:33 +00:00
httpservlet lib/webrick: explicitly convert header values to a string 2018-11-26 05:29:45 +00:00
.document Ignore gemspec under the lib directory for documentation. 2017-12-12 08:34:13 +00:00
accesslog.rb
cgi.rb lib/*: Prefer require_relative over require. 2018-11-02 17:52:33 +00:00
compat.rb
config.rb lib/*: Prefer require_relative over require. 2018-11-02 17:52:33 +00:00
cookie.rb lib/*: Prefer require_relative over require. 2018-11-02 17:52:33 +00:00
htmlutils.rb
httpauth.rb lib/*: Prefer require_relative over require. 2018-11-02 17:52:33 +00:00
httpproxy.rb lib/*: Prefer require_relative over require. 2018-11-02 17:52:33 +00:00
httprequest.rb lib/*: Prefer require_relative over require. 2018-11-02 17:52:33 +00:00
httpresponse.rb WEBrick::HTTPResponse create tempfile if required. 2019-07-11 09:18:41 +09:00
https.rb lib/*: Prefer require_relative over require. 2018-11-02 17:52:33 +00:00
httpserver.rb webrick: add the ability to override res, req creation 2018-12-19 11:08:05 +00:00
httpservlet.rb lib/*: Prefer require_relative over require. 2018-11-02 17:52:33 +00:00
httpstatus.rb lib/*: Prefer require_relative over require. 2018-11-02 17:52:33 +00:00
httputils.rb Adds WebAssembly MIME type 2019-06-24 10:11:56 +09:00
httpversion.rb
log.rb webrick: WEBrick::Log requires path arg when given string 2017-12-22 01:07:55 +00:00
server.rb lib/*: Prefer require_relative over require. 2018-11-02 17:52:33 +00:00
ssl.rb webrick: fix tests on Debian sid/unstable with OpenSSL 1.1.1a 2018-12-03 04:51:08 +00:00
utils.rb Add uplevel keyword to Kernel#warn and use it 2017-12-12 11:56:25 +00:00
version.rb webrick 1.4.2 2017-12-24 08:38:43 +00:00
webrick.gemspec Use cgit instead of svn. 2019-05-07 23:31:03 +09:00