るりまサーチ

最速Rubyリファレンスマニュアル検索!
12件ヒット [1-12件を表示] (0.140秒)

別のキーワード

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

ライブラリ

モジュール

検索結果

Net::HTTPHeader#delete(key) -> [String] | nil (21351.0)

key ヘッダフィールドを削除します。

...します。

@param key 削除するフィールド名
@return 取り除かれたフィールドの値を返します。
key ヘッダフィールドが存在しなかった場合には
nil を返します。

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

uri = URI.parse('http://www.exam...
...ple.com/index.html')
r
eq = Net::HTTP::Get.new(uri.request_uri)
r
eq.content_length = 10
r
eq.content_length # => 10
r
eq.delete("Content-Length") # => ["10"]
r
eq.content_length # => nil
//}...