72件ヒット
[1-72件を表示]
(0.021秒)
ライブラリ
- open-uri (24)
- openssl (24)
-
webrick
/ httpauth / basicauth (12) -
webrick
/ httpproxy (12)
クラス
モジュール
- OpenURI (24)
検索結果
先頭5件
- OpenSSL
:: OCSP :: BasicResponse . new -> OpenSSL :: OCSP :: BasicResponse - WEBrick
:: HTTPAuth :: BasicAuth . new(config , default = Config :: BasicAuth) -> WEBrick :: HTTPAuth :: BasicAuth - OpenSSL
:: OCSP :: Response . create(status , basic _ resp) -> OpenSSL :: OCSP :: Response - WEBrick
:: HTTPProxyServer . new(config , default = WEBrick :: Config :: HTTP) -> WEBrick :: HTTPProxyServer - OpenURI
. open _ uri(name , mode = & # 39;r& # 39; , perm = nil , options = {}) -> StringIO
-
OpenSSL
:: OCSP :: BasicResponse . new -> OpenSSL :: OCSP :: BasicResponse (6201.0) -
空の BasicResponse オブジェクトを生成します。
...空の BasicResponse オブジェクトを生成します。
@see OpenSSL::OCSP::Response.create... -
WEBrick
:: HTTPAuth :: BasicAuth . new(config , default = Config :: BasicAuth) -> WEBrick :: HTTPAuth :: BasicAuth (3401.0) -
BasicAuth オブジェクトを生成します。config は設定を保存したハッシュです。
...
BasicAuth オブジェクトを生成します。config は設定を保存したハッシュです。
config で有効なハッシュキーは以下の通りです。
:Realm =>
:UserDB =>
:Logger =>
:AutoReloadUserDB =>
realm を表す文字列 :Realm には与......ジェクトを与えます。また、:AutoReloadUserDB には
WEBrick::HTTPAuth::Htpasswd#get_passwd の
reload_db に渡す引数を与えます。
@param config 設定を保持しているハッシュを指定します。
@param default デフォルトは WEBrick::Config::BasicAuth です。... -
OpenSSL
:: OCSP :: Response . create(status , basic _ resp) -> OpenSSL :: OCSP :: Response (3208.0) -
Response オブジェクトを OpenSSL::OCSP::BasicResponse オブジェクト から生成します。
...Response オブジェクトを OpenSSL::OCSP::BasicResponse オブジェクト
から生成します。
@param status ステータスコード(整数)
@param basic_resp OpenSSL::OCSP::BasicResponse オブジェクト
@see OpenSSL::OCSP::Response.new... -
WEBrick
:: HTTPProxyServer . new(config , default = WEBrick :: Config :: HTTP) -> WEBrick :: HTTPProxyServer (207.0) -
プロクシオブジェクトを生成して返します。
...プロクシオブジェクトを生成して返します。
@param config 設定を保存したハッシュを指定します。
設定として有効なハッシュのキーとその値は WEBrick::HTTPServer.new と同じです。
それに加えて以下のキーが......有効です。
: :ProxyAuthProc
プロクシ認証を行う Proc オブジェクトを指定します。この proc は
WEBrick::HTTPResponse オブジェクトと WEBrick::HTTPRequest オブジェクトを引数として
proc.call(req, res) のように呼ばれます。
認証に失敗......は 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"'
rai... -
OpenURI
. open _ uri(name , mode = & # 39;r& # 39; , perm = nil , options = {}) -> StringIO (155.0) -
URI である文字列 name のリソースを取得して StringIO オブジェクト として返します。
...p://www.example.com'){|sio| sio.read }
options には Hash を与えます。理解するハッシュの
キーは以下のシンボル、
* :proxy
* :progress_proc
* :content_length_proc
* :http_basic_authentication
* :proxy_http_basic_authentication
* :read_timeout
* :ssl_ca_cert
* :ssl_v......erify_mode
* :ftp_active_mode
* :redirect
です。
「:content_length_proc」と「:progress_proc」はプログレスバーに
利用されることを想定しています。
require 'open-uri'
sio = OpenURI.open_uri('http://www.example.com',
{ :proxy => 'http://pr......oxy.example.com:8000/',
:http_basic_authentication => [username, password] })
: :proxy
プロクシの設定をします。
値には以下のいずれかを与えます。
//emlist{
文字列: "http://proxy.example.com:8000/" のようなプロクシの UR... -
OpenURI
. open _ uri(name , mode = & # 39;r& # 39; , perm = nil , options = {}) {|sio| . . . } -> nil (155.0) -
URI である文字列 name のリソースを取得して StringIO オブジェクト として返します。
...p://www.example.com'){|sio| sio.read }
options には Hash を与えます。理解するハッシュの
キーは以下のシンボル、
* :proxy
* :progress_proc
* :content_length_proc
* :http_basic_authentication
* :proxy_http_basic_authentication
* :read_timeout
* :ssl_ca_cert
* :ssl_v......erify_mode
* :ftp_active_mode
* :redirect
です。
「:content_length_proc」と「:progress_proc」はプログレスバーに
利用されることを想定しています。
require 'open-uri'
sio = OpenURI.open_uri('http://www.example.com',
{ :proxy => 'http://pr......oxy.example.com:8000/',
:http_basic_authentication => [username, password] })
: :proxy
プロクシの設定をします。
値には以下のいずれかを与えます。
//emlist{
文字列: "http://proxy.example.com:8000/" のようなプロクシの UR...