るりまサーチ

最速Rubyリファレンスマニュアル検索!
48件ヒット [1-48件を表示] (0.084秒)
トップページ > クエリ:t[x] > ライブラリ:webrick/httpproxy[x]

別のキーワード

  1. openssl t61string
  2. asn1 t61string
  3. matrix t
  4. t61string new
  5. fiddle type_size_t

種類

クラス

オブジェクト

キーワード

検索結果

WEBrick::NullReader.gets(*args) -> nil (6102.0)

常に nil を返します。

常に nil を返します。

WEBrick::HTTPProxyServer (6002.0)

プロクシの機能を提供するクラスです。CONNECT メソッドにも対応しています。

...ECT メソッドにも対応しています。

* https://magazine.rubyist.net/articles/0002/0002-WEBrickProxy.html

以下は完全に動作するプロクシサーバの例です。

require 'webrick'
require 'webrick/httpproxy'

s = WEBrick::HTTPProxyServer.new(Port: 8080)
Signal.trap('INT')...
...do
s.shutdown
end
s.start...

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

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

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

: :ProxyAuthProc
プロクシ認証を行う Proc オブジェクトを指定します。この proc は
WEBrick::HTTPResponse オブジェクトと WEBrick::HTTPRequest オブジェ...
...TTPAuth::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"'
raise WEBrick::HT...
...Brick::HTTPResponse オブジェクトと
WEBrick::HTTPRequest オブジェクトを引数として proc.call(req, res) のように呼ばれます。
nil を指定した場合なにもしません。デフォルトは nil です。
//emlist{
require 'webrick'
require 'webrick/httpproxy'
hand...

WEBrick::NullReader.read(*args) -> nil (3002.0)

常に nil を返します。

常に nil を返します。