るりまサーチ

最速Rubyリファレンスマニュアル検索!
108件ヒット [101-108件を表示] (0.040秒)
トップページ > クエリ:@[x] > クエリ:authenticate[x]

別のキーワード

  1. imap authenticate
  2. smtp authenticate
  3. net/smtp authenticate
  4. basicauth authenticate
  5. net/imap authenticate

検索結果

<< < 1 2 >>

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

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

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

@
param config 設定を保存したハッシュを指定します。
設定として有効なハッシュのキーとその値は WEBrick::HTTPServer.new と同じです。
それに加えて以下のキーが...
...//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::HTTPPr...
...の Proxy の URI
を URI オブジェクトで指定します。
//emlist{
require 'uri'
require 'webrick/httpproxy'
u = URI.parse('http://localhost:18080/')
s = WEBrick::HTTPProxyServer.new(ProxyURI: u, Port: 8080)
//}

@
param default デフォルトは WEBrick::Config::HTTP です。...
<< < 1 2 >>