るりまサーチ (Ruby 2.5.0)

最速Rubyリファレンスマニュアル検索!
4件ヒット [1-4件を表示] (0.213秒)
トップページ > バージョン:2.5.0[x] > ライブラリ:webrick[x] > クエリ:WEBrick::HTTPStatus::ProxyAuthenticationRequired[x]

別のキーワード

  1. new openssl::bn
  2. new openssl::asn1::asn1data
  3. new openssl::x509::certificate
  4. new openssl::pkey::ec::group
  5. start net::smtp

検索結果

WEBrick::HTTPStatus::ProxyAuthenticationRequired (69004.0)

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

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

WEBrick::HTTPAuth::ProxyAuthenticator::AuthException -> Class (52.0)

WEBrick::HTTPStatus::ProxyAuthenticationRequired です。

...
WEBrick
::HTTPStatus::ProxyAuthenticationRequired です。...

WEBrick::HTTPAuth.#proxy_basic_auth(req, res, realm) {|user, pass| ... } -> nil (22.0)

プロクシの Basic 認証行うためのメソッドです。

...アントからのリクエストを表す WEBrick::HTTPRequest オブジェクトを指定します。

@param res WEBrick::HTTPResponse オブジェクトを指定します。

@param realm 認証のレルムを文字列で指定します。

@raise WEBrick::HTTPStatus::ProxyAuthenticationRequired...

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

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

...とその値は WEBrick::HTTPServer.new と同じです。
それに加えて以下のキーが有効です。

: :ProxyAuthProc
プロクシ認証を行う Proc オブジェクトを指定します。この proc は
WEBrick
::HTTPResponse オブジェクトと WEBrick::HTTPRequest...
...通常は WEBrick::HTTPAuth::ProxyBasicAuth か
WEBrick
::HTTPAuth::ProxyDigestAuth を使用します。
//emlist{
require 'webrick'
require 'webrick/httpproxy'
auth_proc = proc{|req, res|
unless c = req['proxy-authorization']
res['Proxy-Authenticate'] = 'Basic realm="WEBrick Proxy"'...
...nd
}
s = WEBrick::HTTPProxyServer.new(ProxyAuthProc: auth_proc, Port: 8080)
//}
: :ProxyContentHandler
接続先の HTTP サーバからの内容を処理する Proc オブジェクトを指定します。
レスポンスの内容を書き換えたりする事が出来ます。WEBrick::HTTPRes...