るりまサーチ

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

別のキーワード

  1. rbconfig ruby
  2. fiddle ruby_free
  3. fiddle build_ruby_platform
  4. rake ruby
  5. rubygems/defaults ruby_engine

ライブラリ

検索結果

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

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

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

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

//emlist[例][ruby]{
r
equire 'net/http'

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