るりまサーチ

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

別のキーワード

  1. request new
  2. request to_der
  3. request verify
  4. http request_get
  5. request sign

ライブラリ

モジュール

検索結果

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

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

...rn 取り除かれたフィールドの値を返します。
key ヘッダフィールドが存在しなかった場合には
n
il を返します。

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

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