216件ヒット
[101-200件を表示]
(0.082秒)
別のキーワード
ライブラリ
-
net
/ http (216)
キーワード
- [] (12)
- []= (12)
-
basic
_ auth (12) -
content
_ length (12) -
content
_ length= (12) -
content
_ type= (12) - delete (12)
- fetch (36)
-
form
_ data= (12) -
get
_ fields (12) - key? (12)
-
proxy
_ basic _ auth (12) - range (12)
-
range
_ length (12) -
set
_ content _ type (12) -
set
_ form _ data (12)
検索結果
先頭5件
-
Net
:: HTTPHeader # basic _ auth(account , password) -> [String] (32.0) -
Authorization: ヘッダを BASIC 認証用にセットします。
...tion: ヘッダを BASIC 認証用にセットします。
@param account アカウント名を文字列で与えます。
@param password パスワードを文字列で与えます。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Ge... -
Net
:: HTTPHeader # content _ type=(type) (32.0) -
type と params から Content-Type: ヘッダフィールドの 値を設定します。
...ッダフィールドの
値を設定します。
@param type メディアタイプを文字列で指定します。
@param params パラメータ属性をハッシュで指定します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP... -
Net
:: HTTPHeader # delete(key) -> [String] | nil (32.0) -
key ヘッダフィールドを削除します。
...除します。
@param key 削除するフィールド名
@return 取り除かれたフィールドの値を返します。
key ヘッダフィールドが存在しなかった場合には
nil を返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.e... -
Net
:: HTTPHeader # get _ fields(key) -> [String] (32.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 # proxy _ basic _ auth(account , password) -> [String] (32.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::HTTP::Ge... -
Net
:: HTTPHeader # set _ content _ type(type , params = {}) (32.0) -
type と params から Content-Type: ヘッダフィールドの 値を設定します。
...ッダフィールドの
値を設定します。
@param type メディアタイプを文字列で指定します。
@param params パラメータ属性をハッシュで指定します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP... -
Net
:: HTTPHeader # content _ length -> Integer|nil (26.0) -
Content-Length: ヘッダフィールドの表している値を整数で返します。
...されていない場合には nil を返します。
@raise Net::HTTPHeaderSyntaxError フィールドの値が不正である場合に
発生します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTT... -
Net
:: HTTPHeader # content _ length=(len) (26.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.content_len... -
Net
:: HTTPHeader # key?(key) -> bool (26.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.key?('c...