1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test
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
..
-ext-
base64
benchmark
bigdecimal Suppress deprecation warnings 2018-12-14 04:10:42 +00:00
cgi
coverage
csv
date
dbm
digest
drb
dtrace
erb
etc
excludes
fiddle
fileutils
gdbm
io Suppress uninitialized instance variable warnings 2018-12-14 01:29:23 +00:00
irb
json
lib test/lib/test/unit.rb: do not propagate MAKEFLAGS to children 2018-12-15 04:40:14 +00:00
logger
matrix
minitest
misc
mkmf
monitor
net
nkf
objspace
open-uri
openssl
optparse
ostruct
pathname Pathname#relative_path_from uses is_a? 2018-12-18 03:09:54 +00:00
psych
rdoc
readline
resolv
rexml
rinda
ripper
rss
ruby Enable refinements on symbol-proc in ruby-level methods 2018-12-18 13:59:46 +00:00
rubygems Merge RubyGems 3.0.0 from upstream. 2018-12-19 07:20:17 +00:00
scanf
sdbm
shell
socket
stringio
strscan
syslog
testunit
uri
webrick webrick: add the ability to override res, req creation 2018-12-19 11:08:05 +00:00
win32ole test_win32ole_event.rb: retry random failure 2018-12-13 05:59:14 +00:00
yaml
zlib
colors
runner.rb
test_abbrev.rb
test_cmath.rb
test_delegate.rb
test_extlibs.rb
test_find.rb
test_forwardable.rb
test_ipaddr.rb Import ipaddr 1.2.2 2018-12-18 05:09:08 +00:00
test_mutex_m.rb
test_observer.rb
test_open3.rb use :chdir option to avoid fd 3 to work with Windows. 2018-12-13 08:53:15 +00:00
test_pp.rb
test_prettyprint.rb
test_prime.rb
test_pstore.rb
test_pty.rb
test_rbconfig.rb
test_securerandom.rb
test_set.rb
test_shellwords.rb
test_singleton.rb
test_sync.rb
test_syslog.rb
test_tempfile.rb
test_time.rb
test_timeout.rb
test_tmpdir.rb
test_tracer.rb
test_tsort.rb
test_unicode_normalize.rb
test_weakref.rb
test_win32api.rb