1件ヒット
[1-1件を表示]
(0.023秒)
モジュール
-
Net
:: HTTPHeader (1)
検索結果
-
Net
:: HTTPHeader # [](key) -> String|nil (54613.0) -
key ヘッダフィールドを返します。
...しては '2048'
のような文字列が得られます。キーが存在しなければ nil を返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req['user-agent'] # => Ruby
//}
一種類のヘ...