るりまサーチ (Ruby 2.6.0)

最速Rubyリファレンスマニュアル検索!
7件ヒット [1-7件を表示] (0.107秒)

別のキーワード

  1. uri build
  2. uri extract
  3. uri new
  4. open-uri open
  5. uri regexp

ライブラリ

クラス

モジュール

キーワード

検索結果

URI::Generic#password -> String | nil (87355.0)

自身の password を文字列で返します。設定されていない場合は nil を返します。

自身の password を文字列で返します。設定されていない場合は nil を返します。

URI::Generic#password=(s) (51409.0)

自身の password を設定します。

自身の password を設定します。

自身に user が設定されていない場合には例外が発生します。

@param s 自身の password を表す文字列を指定します。

@raise URI::InvalidComponentError 不正な引数 s に対して発生します。

@raise URI::InvalidURIError userinfo と registry を同時に設定した場合に発生します。

URI::Generic#userinfo=(s) (33112.0)

自身の userinfo を設定します。

自身の userinfo を設定します。

@param s 自身の userinfo を "username" か "username:password" という形式の文字列、あるいは
[username, password] という形式の文字列の配列で指定します。

@raise URI::InvalidComponentError 不正な引数 s に対して発生します。

@raise URI::InvalidURIError userinfo と registry を同時に設定した場合に発生します。

例:
require 'uri'
u = URI.pars...

URI::Generic#userinfo -> String | nil (33052.0)

自身の userinfo を "username:password" という形式の文字列で返します。 設定されていない場合は nil を返します。

自身の userinfo を "username:password" という形式の文字列で返します。
設定されていない場合は nil を返します。

URI::Generic#user -> String | nil (33022.0)

自身の userinfo を文字列で返します。

自身の userinfo を文字列で返します。

userinfo が「username:password」の形式である場合は、username 部を返します。
設定されていない場合は nil を返します。

絞り込み条件を変える

Net::HTTPHeader#proxy_basic_auth(account, password) -> [String] (415.0)

Proxy 認証のために Proxy-Authorization: ヘッダをセットします。

Proxy 認証のために Proxy-Authorization: ヘッダをセットします。

@param account アカウント名を文字列で与えます。
@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") # => ["Ba...

Net::HTTPHeader#basic_auth(account, password) -> [String] (397.0)

Authorization: ヘッダを BASIC 認証用にセットします。

Authorization: ヘッダを BASIC 認証用にセットします。

@param account アカウント名を文字列で与えます。
@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.basic_auth("user", "pass") # => ["Basic dXNlcjpwYXNz"]
//}...