зеркало из https://github.com/github/ruby.git
* lib/webrick/httpresponse.rb: add HTTPResponse#keep_alive=.
* lib/webrick/httpserver.rb (HTTPServer#run): should pass the request's keep_alive flag to the response. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
8408fc1585
Коммит
3d0d2d5ff1
|
@ -1,3 +1,10 @@
|
|||
Wed Nov 26 00:55:30 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
|
||||
|
||||
* lib/webrick/httpresponse.rb: add HTTPResponse#keep_alive=.
|
||||
|
||||
* lib/webrick/httpserver.rb (HTTPServer#run): should pass the
|
||||
request's keep_alive flag to the response.
|
||||
|
||||
Tue Nov 25 21:41:35 2003 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* defines.h (ENV_IGNORECASE): should define when DOSISH without
|
||||
|
|
|
@ -25,7 +25,8 @@ module WEBrick
|
|||
|
||||
attr_accessor :request_method, :request_uri, :request_http_version
|
||||
attr_accessor :filename
|
||||
attr_reader :config, :keep_alive, :sent_size
|
||||
attr_accessor :keep_alive
|
||||
attr_reader :config, :sent_size
|
||||
|
||||
def initialize(config)
|
||||
@config = config
|
||||
|
|
|
@ -47,6 +47,7 @@ module WEBrick
|
|||
res.request_method = req.request_method
|
||||
res.request_uri = req.request_uri
|
||||
res.request_http_version = req.http_version
|
||||
res.keep_alive = req.keep_alive?
|
||||
if handler = @config[:RequestHandler]
|
||||
handler.call(req, res)
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче