24件ヒット
[1-24件を表示]
(0.024秒)
検索結果
先頭2件
-
WEBrick
:: HTTPStatus . [](code) -> Class (3029.0) -
指定された整数が表すステータスコードに対応する WEBrick::HTTPStatus::Status のサブクラスを返します。
...指定された整数が表すステータスコードに対応する WEBrick::HTTPStatus::Status
のサブクラスを返します。
@param code HTTP のステータスコードを表す整数を指定します。
require 'webrick'
p WEBrick::HTTPStatus[200] #=> WEBrick::HTTPStatus::OK... -
WEBrick
:: HTTPProxyServer . new(config , default = WEBrick :: Config :: HTTP) -> WEBrick :: HTTPProxyServer (7.0) -
プロクシオブジェクトを生成して返します。
...oc = proc{|req, res|
unless c = req['proxy-authorization']
res['Proxy-Authenticate'] = 'Basic realm="WEBrick Proxy"'
raise WEBrick::HTTPStatus::ProxyAuthenticationRequired
else
# 略
end
}
s = WEBrick::HTTPProxyServer.new(ProxyAuthProc: auth_proc, Port: 8080)
//}
: :ProxyCo...