るりまサーチ

最速Rubyリファレンスマニュアル検索!
22件ヒット [1-22件を表示] (0.206秒)
トップページ > 種類:インスタンスメソッド[x] > クエリ:l[x] > クエリ:n[x] > クエリ:bool[x] > モジュール:Net::HTTPHeader[x]

別のキーワード

  1. matrix l
  2. kernel $-l
  3. _builtin $-l
  4. lupdecomposition l
  5. l matrix

ライブラリ

キーワード

検索結果

Net::HTTPHeader#chunked? -> bool (6303.0)

Transfer-Encoding: ヘッダフィールドが "chunked" である 場合に真を返します。

...Transfer-Encoding: ヘッダフィールドが "chunked" である
場合に真を返します。

Transfer-Encoding: ヘッダフィールドが存在しなかったり、
"chunked" 以外である場合には偽を返します。

//emlist[例][ruby]{
require 'net/http'

uri = URI.parse('http://ww...
...w.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.chunked? # => false
req["Transfer-Encoding"] = "chunked"
req.chunked? # => true
//}...

Net::HTTPHeader#key?(key) -> bool (3203.0)

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?('content-type') # => true
res.key?('nonexist-header') # => false
//}...