るりまサーチ (Ruby 2.1.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.027秒)
トップページ > ライブラリ:net/http[x] > クエリ:http[x] > バージョン:2.1.0[x] > クエリ:chunked?[x]

別のキーワード

  1. net/http get
  2. http get
  3. http start
  4. net/http start
  5. net/http delete

モジュール

検索結果

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

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

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

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

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