156件ヒット
[1-100件を表示]
(0.030秒)
種類
- インスタンスメソッド (84)
- 特異メソッド (36)
- ライブラリ (24)
- 文書 (12)
クラス
-
URI
:: FTP (12) -
URI
:: Generic (60)
モジュール
-
Net
:: HTTPHeader (24) - OpenURI (24)
キーワード
-
NEWS for Ruby 2
. 0 . 0 (12) -
basic
_ auth (12) -
net
/ http (12) - new2 (12)
-
open
_ uri (24) - password= (12)
-
proxy
_ basic _ auth (12) - rubygems (12)
- user (12)
- userinfo (12)
- userinfo= (12)
検索結果
先頭5件
-
URI
:: Generic # password -> String | nil (29117.0) -
自身の password を文字列で返します。設定されていない場合は nil を返します。
...自身の password を文字列で返します。設定されていない場合は nil を返します。... -
URI
:: Generic # password=(s) (17135.0) -
自身の password を設定します。
...の password を設定します。
自身に user が設定されていない場合には例外が発生します。
@param s 自身の password を表す文字列を指定します。
@raise URI::InvalidComponentError 不正な引数 s に対して発生します。
@raise URI::InvalidURIError... -
URI
:: FTP . new2(user , password , host , port , path , typecode = nil , arg _ check = true) -> URI :: FTP (11236.0) -
URI::FTP オブジェクトを生成して返します。 引数の正当性を検査します。
...
URI::FTP オブジェクトを生成して返します。
引数の正当性を検査します。
@param user 構成要素を表す文字列を与えます。
@param password 構成要素を表す文字列を与えます。
@param host 構成要素を表す文字列を与えます。
@param por......句規則に適合しているか否かを検査します。適合しない場合は例外 URI::InvalidComponentError が起ります。
@raise ArgumentError typecode が正当でなかった場合に発生します。
@raise URI::InvalidURIError 引数が invalid な場合に発生します。... -
URI
:: Generic # userinfo=(s) (11036.0) -
自身の userinfo を設定します。
..."username" か "username:password" という形式の文字列、あるいは
[username, password] という形式の文字列の配列で指定します。
@raise URI::InvalidComponentError 不正な引数 s に対して発生します。
@raise URI::InvalidURIError userinfo と registr......y を同時に設定した場合に発生します。
例:
require 'uri'
u = URI.parse('http://example.com/')
u.userinfo = 'hoge-san:jfae82kj'
p u.to_s #=> "http://hoge-san:jfae82kj@example.com/"
u.userinfo = 'oreore'
p u.to_s #... -
URI
:: Generic # userinfo -> String | nil (11016.0) -
自身の userinfo を "username:password" という形式の文字列で返します。 設定されていない場合は nil を返します。
...自身の userinfo を "username:password" という形式の文字列で返します。
設定されていない場合は nil を返します。... -
URI
:: Generic # user -> String | nil (11006.0) -
自身の userinfo を文字列で返します。
...自身の userinfo を文字列で返します。
userinfo が「username:password」の形式である場合は、username 部を返します。
設定されていない場合は nil を返します。... -
OpenURI
. open _ uri(name , mode = & # 39;r& # 39; , perm = nil , options = {}) -> StringIO (9238.0) -
URI である文字列 name のリソースを取得して StringIO オブジェクト として返します。
...
URI である文字列 name のリソースを取得して StringIO オブジェクト
として返します。
ブロックを与えた場合は StringIO オブジェクトを引数としてブロックを
評価します。ブロックの終了時に StringIO は close されます。nil を返......します。
require 'open-uri'
sio = OpenURI.open_uri('http://www.example.com')
p sio.last_modified
puts sio.read
OpenURI.open_uri('http://www.example.com'){|sio| sio.read }
options には Hash を与えます。理解するハッシュの
キーは以下のシンボル、
* :proxy
*......とを想定しています。
require 'open-uri'
sio = OpenURI.open_uri('http://www.example.com',
{ :proxy => 'http://proxy.example.com:8000/',
:http_basic_authentication => [username, password] })
: :proxy
プロクシの設定をします... -
OpenURI
. open _ uri(name , mode = & # 39;r& # 39; , perm = nil , options = {}) {|sio| . . . } -> nil (9238.0) -
URI である文字列 name のリソースを取得して StringIO オブジェクト として返します。
...
URI である文字列 name のリソースを取得して StringIO オブジェクト
として返します。
ブロックを与えた場合は StringIO オブジェクトを引数としてブロックを
評価します。ブロックの終了時に StringIO は close されます。nil を返......します。
require 'open-uri'
sio = OpenURI.open_uri('http://www.example.com')
p sio.last_modified
puts sio.read
OpenURI.open_uri('http://www.example.com'){|sio| sio.read }
options には Hash を与えます。理解するハッシュの
キーは以下のシンボル、
* :proxy
*......とを想定しています。
require 'open-uri'
sio = OpenURI.open_uri('http://www.example.com',
{ :proxy => 'http://proxy.example.com:8000/',
:http_basic_authentication => [username, password] })
: :proxy
プロクシの設定をします... -
Net
:: HTTPHeader # proxy _ basic _ auth(account , password) -> [String] (137.0) -
Proxy 認証のために Proxy-Authorization: ヘッダをセットします。
...字列で与えます。
@param password パスワードを文字列で与えます。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.proxy_basic_auth("account", "password") # => ["Basic YWNjb3VudDpwYXNzd29...