264件ヒット
[201-264件を表示]
(0.054秒)
別のキーワード
キーワード
- [] (12)
- []= (12)
-
add
_ field (12) -
basic
_ auth (12) -
content
_ length= (12) -
content
_ type= (12) - delete (12)
- fetch (36)
-
form
_ data= (12) -
get
_ fields (12) - key? (12)
-
proxy
_ basic _ auth (12) - range= (24)
-
set
_ content _ type (12) -
set
_ form _ data (12) -
set
_ range (36) -
type
_ params (12)
検索結果
先頭5件
-
Net
:: HTTPHeader # content _ type=(type) (22.0) -
type と params から Content-Type: ヘッダフィールドの 値を設定します。
...type と params から Content-Type: ヘッダフィールドの
値を設定します。
@param type メディアタイプを文字列で指定します。
@param params パラメータ属性をハッシュで指定します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.... -
Net
:: HTTPHeader # proxy _ basic _ auth(account , password) -> [String] (22.0) -
Proxy 認証のために Proxy-Authorization: ヘッダをセットします。
...ために Proxy-Authorization: ヘッダをセットします。
@param account アカウント名を文字列で与えます。
@param password パスワードを文字列で与えます。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HT... -
Net
:: HTTPHeader # content _ length=(len) (16.0) -
Content-Length: ヘッダフィールドに値を設定します。
...ます。
len に nil を与えると Content-Length: ヘッダフィールドを
削除します。
@param len 設定する値を整数で与えます。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.co... -
Net
:: HTTPHeader # delete(key) -> [String] | nil (16.0) -
key ヘッダフィールドを削除します。
...を削除します。
@param key 削除するフィールド名
@return 取り除かれたフィールドの値を返します。
key ヘッダフィールドが存在しなかった場合には
nil を返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http:/... -
Net
:: HTTPHeader # get _ fields(key) -> [String] (16.0) -
key ヘッダフィールドの値 (文字列) を配列で返します。
...。
@param key ヘッダフィール名を文字列で与えます。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
res = Net::HTTP.get_response(uri)
res.get_fields('accept-ranges') # => ["none"]
//}
@see Net::HTTPHeader#[] , Net::HTTPHeader#[]=,... -
Net
:: HTTPHeader # key?(key) -> bool (16.0) -
key というヘッダフィールドがあれば真を返します。 key は大文字小文字を区別しません。
...ルドがあれば真を返します。
key は大文字小文字を区別しません。
@param key 探すヘッダフィールド名を文字列で与えます。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
res = Net::HTTP.get_response(uri)
res.k...