1件ヒット
[1-1件を表示]
(0.169秒)
別のキーワード
ライブラリ
-
net
/ http (1)
モジュール
-
Net
:: HTTPHeader (1)
検索結果
-
Net
:: HTTPHeader # get _ fields(key) -> [String] (81643.0) -
key ヘッダフィールドの値 (文字列) を配列で返します。
key ヘッダフィールドの値 (文字列) を配列で返します。
たとえばキー 'content-length' に対しては ['2048'] のような
文字列が得られます。一種類のヘッダフィールドが一つのヘッダの中
に複数存在することがありえます。
key は大文字小文字を区別しません。
@param key ヘッダフィール名を文字列で与えます。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
res = Net::HTTP.get_response(ur...