1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/lib
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
..
bundler Update metadata of Bundler 1.17.2 2018-12-19 07:02:57 +00:00
cgi Use delete_prefix instead of sub(/\Afixed-pattern/, '') 2018-12-04 08:22:10 +00:00
csv default gems: add missing comment in gemspec 2018-10-12 19:58:11 +00:00
drb drb: fix tests on Debian sid/unstable with OpenSSL 1.1.1a 2018-12-03 04:51:13 +00:00
e2mmap Promote Exception2MessageMapper to Default gems. 2018-07-25 12:26:41 +00:00
fileutils Merge fileutils from ruby/fileutils on GitHub. 2018-10-20 07:03:55 +00:00
forwardable Disable tailcall optimization [Bug #15303] 2018-12-12 05:46:13 +00:00
irb Bump version to 1.0.0. 2018-12-18 06:49:12 +00:00
matrix lib/matrix: Use consistent style 2018-11-02 17:52:20 +00:00
net Move autoload to toplevel 2018-12-14 09:44:20 +00:00
optparse
racc lib/racc/parser.rb: use require for racc/cparse 2018-11-03 08:43:19 +00:00
rdoc Merge RDoc 6.1.0.beta3 from upstream 2018-12-08 17:39:52 +00:00
rexml lib/*: Prefer require_relative over require. 2018-11-02 17:52:33 +00:00
rinda lib/*: Prefer require_relative over require. 2018-11-02 17:52:33 +00:00
rss Fix up r65505 [ci skip] 2018-11-05 07:01:49 +00:00
rubygems Merge RubyGems 3.0.0 from upstream. 2018-12-19 07:20:17 +00:00
shell lib/*: Prefer require_relative over require, remove explicit extension 2018-11-02 17:52:43 +00:00
thwait Add same comment to thwait.gemspec like other gemspec at r64145 2018-07-31 15:20:55 +00:00
tracer Try to load version file of github repository at first. 2018-07-31 12:56:17 +00:00
unicode_normalize update to Unicode 11.0.0 (main step, not complete yet) 2018-12-05 08:10:24 +00:00
uri lib/*: Prefer require_relative over require. 2018-11-02 17:52:33 +00:00
webrick webrick: add the ability to override res, req creation 2018-12-19 11:08:05 +00:00
yaml
.document lib/.document: add csv 2018-07-01 08:12:13 +00:00
abbrev.rb
base64.rb
benchmark.rb Work on Benchmark::Tms documentation [ci skip] 2018-09-15 12:45:46 +00:00
bundler.gemspec Use stub executables generated by RubyGems istead of original executables. 2018-11-25 01:20:00 +00:00
bundler.rb Downgrade Bundler 1.17.x from 2.0.0. 2018-12-11 03:07:37 +00:00
cgi.rb
cmath.gemspec Removed needless date attribute from gemspec of default gems. 2018-08-07 12:02:10 +00:00
cmath.rb
csv.rb Merge csv-3.0.0 from ruby/csv repository. 2018-09-05 13:33:21 +00:00
debug.rb
delegate.rb
drb.rb
e2mmap.gemspec Removed redundant empty line. 2018-11-28 00:48:21 +00:00
e2mmap.rb
English.rb
erb.rb erb.rb: warn invalid trim_mode [Misc #15294] 2018-11-12 00:37:15 +00:00
fileutils.rb Dir.children is available since Feature #11302. FileUtils uses 2018-11-07 15:55:14 +00:00
find.rb
forwardable.rb Disable tailcall optimization [Bug #15303] 2018-12-12 05:46:13 +00:00
getoptlong.rb
ipaddr.gemspec Import ipaddr 1.2.2 2018-12-18 05:09:08 +00:00
ipaddr.rb Import ipaddr 1.2.2 2018-12-18 05:09:08 +00:00
irb.rb Backport https://github.com/ruby/irb/pull/2 2018-12-12 07:41:10 +00:00
logger.gemspec default gems: add missing comment in gemspec 2018-10-12 19:58:11 +00:00
logger.rb Bump version to 1.3.0 same as the latest version of rubygems.org. 2018-12-12 09:40:06 +00:00
matrix.rb lib/matrix.rb: Make Matrix & Vector mutable. Add #[]=, #map!. 2018-11-02 17:52:51 +00:00
mkmf.rb Use delete_prefix instead of sub(/\Afixed-pattern/, '') 2018-12-04 08:22:10 +00:00
monitor.rb lib/monitor.rb: prevent to initialize MonitorMixin twice 2018-12-05 09:07:54 +00:00
mutex_m.gemspec Try to load version file of github repository at first. 2018-07-31 12:56:17 +00:00
mutex_m.rb lib/mutex_m.rb: fix example code in documentation 2018-10-21 14:02:00 +00:00
observer.rb
open-uri.rb
open3.rb open3.rb don't use keyword splat (**). 2018-12-12 06:48:46 +00:00
optionparser.rb
optparse.rb Use delete_prefix instead of sub(/\Afixed-pattern/, '') 2018-12-04 08:22:10 +00:00
ostruct.gemspec Promote OpenStruct to default gems. 2018-06-07 10:13:00 +00:00
ostruct.rb Support old versions of Ruby with FrozenError. 2018-08-07 12:47:11 +00:00
pp.rb lib/pp.rb (Range#pretty_print): support endless range 2018-12-03 01:39:45 +00:00
prettyprint.rb
prime.gemspec default gems: add missing comment in gemspec 2018-10-12 19:58:11 +00:00
prime.rb lib/prime.rb: remove unused methods 2018-06-24 09:31:07 +00:00
profile.rb
profiler.rb
pstore.rb
rdoc.rb Merge rdoc-6.1.0.beta1. 2018-08-27 01:30:18 +00:00
resolv-replace.rb
resolv.rb resolv.rb: remove rangerand 2018-03-06 03:31:46 +00:00
rss.rb
rubygems.rb Merge RubyGems 3.0.0 from upstream. 2018-12-19 07:20:17 +00:00
scanf.gemspec Removed needless date attribute from gemspec of default gems. 2018-08-07 12:02:10 +00:00
scanf.rb
securerandom.rb lib/securerandom.rb: improve docs 2018-06-12 20:22:43 +00:00
set.rb
shell.rb Backport https://github.com/ruby/shell/pull/1 2018-12-12 07:34:16 +00:00
shellwords.rb
singleton.rb
sync.gemspec Try to load version file of github repository at first. 2018-07-31 12:56:17 +00:00
sync.rb Bump library version same as released version of rubygems.org 2018-12-12 07:57:42 +00:00
tempfile.rb Enhance Tempfile docs [ci skip] 2018-12-16 12:09:08 +00:00
thwait.rb Removed needless extension for require. 2018-06-08 08:46:52 +00:00
time.rb Remove (nanosecond) too [ci skip] 2018-12-03 02:53:57 +00:00
timeout.rb
tmpdir.rb Ignore file separator from tmpfile/tmpdir name. 2018-03-28 10:03:03 +00:00
tracer.rb Revert partially to avoid test error temporarily 2018-07-23 09:49:46 +00:00
tsort.rb
un.rb Use delete_prefix instead of sub(/\Afixed-pattern/, '') 2018-12-04 08:22:10 +00:00
uri.rb Improve docs for URI library 2018-04-21 20:04:05 +00:00
weakref.rb
webrick.rb
yaml.rb