るりまサーチ

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

別のキーワード

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

モジュール

検索結果

Net::HTTPHeader#chunked? -> bool (21127.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"] = "chunked"
req.chunked? # => true
//}...