るりまサーチ

最速Rubyリファレンスマニュアル検索!
36件ヒット [1-36件を表示] (0.083秒)
トップページ > クエリ:d[x] > クエリ:ProxyAuthenticationRequired[x]

別のキーワード

  1. bigdecimal/util to_d
  2. float to_d
  3. rational to_d
  4. _builtin $-d
  5. kernel $-d

種類

ライブラリ

クラス

キーワード

検索結果

WEBrick::HTTPStatus::ProxyAuthenticationRequired (24000.0)

HTTP のステータスコード 407 Proxy Authentication Required を表すクラスです。

...HTTP のステータスコード 407 Proxy Authentication Required を表すクラスです。...

Net::HTTPProxyAuthenticationRequired (12000.0)

HTTP レスポンス 407 (Proxy Authentication Required) を表現するクラスです。

...HTTP レスポンス 407 (Proxy Authentication Required) を表現するクラスです。

詳しくは 7235 Section 3.2 を見てください。...

WEBrick::HTTPProxyServer.new(config, default = WEBrick::Config::HTTP) -> WEBrick::HTTPProxyServer (106.0)

プロクシオブジェクトを生成して返します。

...th::ProxyDigestAuth を使用します。
//emlist{
require 'webrick'
require 'webrick/httpproxy'
auth_proc = 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)
//}
: :ProxyContentHandler
接続先の HTTP サーバからの内容を処理する Proc オブジェクトを指定します。
レスポンスの内容を書き換えたりする事が出来ます。...
...list{
require 'webrick'
require 'webrick/httpproxy'
handler = proc{|req, res|
res.body.gsub!(/です。/, 'でんがな。')
res.body.gsub!(/ます。/, 'まんがな。')
}
s = WEBrick::HTTPProxyServer.new(ProxyContentHandler: handler, Port: 8080)
//}
: :ProxyVia
true を指定した...