るりまサーチ

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

別のキーワード

  1. openssl p
  2. openssl p=
  3. fileutils mkdir_p
  4. dh p=
  5. dsa p

クラス

モジュール

検索結果

Net::HTTP#delete(path, initheader = nil) -> Net::HTTPResponse (21226.0)

サーバの path に DELETE リクエストを ヘッダを initheader として送ります。

...サーバの path に DELETE リクエストを
ヘッダを initheader として送ります。

レスポンスを Net::HTTPResponse のオブジェクト
で返します。

@param path リクエストを送るパスを文字列で与えます。
@param initheader リクエストのヘッダを...
...「文字列=>文字列」の
ハッシュで与えます。

@see Net::HTTP::Delete...

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

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

...

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

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

uri = URI.parse('http://www.example.com/i...
...ndex.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
//}...