2件ヒット
[1-2件を表示]
(0.014秒)
クラス
-
Net
:: HTTP (1)
モジュール
-
Net
:: HTTPHeader (1)
検索結果
先頭2件
-
Net
:: HTTPHeader # delete(key) -> [String] | nil (63331.0) -
key ヘッダフィールドを削除します。
...ます。
key ヘッダフィールドが存在しなかった場合には
nil を返します。
//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 # =>... -
Net
:: HTTP # delete(path , initheader = nil) -> Net :: HTTPResponse (54679.0) -
サーバの path に DELETE リクエストを ヘッダを initheader として送ります。
サーバの path に DELETE リクエストを
ヘッダを initheader として送ります。
レスポンスを Net::HTTPResponse のオブジェクト
で返します。
@param path リクエストを送るパスを文字列で与えます。
@param initheader リクエストのヘッダを「文字列=>文字列」の
ハッシュで与えます。
@see Net::HTTP::Delete