1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/webrick
normal 4038d0137f webrick: add the ability to override res, req creation
So that a customized HTTPServer subclass can use it's own
Request/Response classes.

To apply the override, make a subclass of WEBrick::HTTPServer
and override the
`create_request_and_response(with_webrick_config)` method. The
method should return an Array of [request, response].

To check whether the Server supports this method (i.e. when
using older versions of WEBrick when needing this
functionality), you can ask the server if it responds to the
method

    server.respond_to?(:create_request_and_response)

This is backportable.

[ruby-core:69604] [Feature #11266]

From: Julik Tarkhanov <me@julik.nl>

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-12-19 11:08:05 +00:00
..
.htaccess
test_cgi.rb
test_config.rb
test_cookie.rb
test_do_not_reverse_lookup.rb
test_filehandler.rb Use binread because webrick also uses binread 2018-10-05 10:36:24 +00:00
test_htgroup.rb Add missing test for WEBrick::HTTPAuth::Htgroup. 2018-08-07 12:56:48 +00:00
test_htmlutils.rb
test_httpauth.rb Add missing escape 2018-07-26 12:47:01 +00:00
test_httpproxy.rb webrick: fix tests on Debian sid/unstable with OpenSSL 1.1.1a 2018-12-03 04:51:08 +00:00
test_httprequest.rb Use binread because webrick also uses binread 2018-10-05 10:36:24 +00:00
test_httpresponse.rb webrick/httpresponse: set_redirect requires a valid URI 2018-07-14 02:59:39 +00:00
test_https.rb
test_httpserver.rb webrick: add the ability to override res, req creation 2018-12-19 11:08:05 +00:00
test_httputils.rb
test_httpversion.rb
test_server.rb mjit_compile.c: merge initial JIT compiler 2018-02-04 11:22:28 +00:00
test_ssl_server.rb webrick: do not hang acceptor on slow TLS connections 2017-10-12 18:50:07 +00:00
test_utils.rb
utils.rb
webrick.cgi
webrick.rhtml webrick: add test for WEBrick::HTTPServlet::ERBHandler 2017-12-22 01:07:50 +00:00
webrick_long_filename.cgi