1件ヒット
[1-1件を表示]
(0.030秒)
クラス
-
Net
:: HTTP (1)
検索結果
-
Net
:: HTTP . Proxy(address , port = 80) -> Class (418.0) -
Proxy 経由で http サーバに接続するためのクラスを作成し返します。
...][ruby]{
require 'net/http'
proxy_class = Net::HTTP::Proxy('proxy.example.com', 8080)
http = proxy_class.new('www.example.org')
http.start {|h|
h.get('/ja/') # proxy.example.com 経由で接続します。
}
//}
//emlist[例2: Net::HTTP.start を使う][ruby]{
require 'net/http'
proxy_class = Net...