るりまサーチ (Ruby 2.2.0)

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

別のキーワード

  1. rexml/document new
  2. rexml/document write
  3. rexml/document to_s
  4. rexml/document clone
  5. rexml/document node_type

クラス

モジュール

キーワード

検索結果

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

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

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

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

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

@see Net::HTTP::Delete

Net::HTTPHeader#delete(key) -> [String] | nil (78346.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 (42055.0)

HTTP の DELETE リクエストを表すクラスです。

HTTP の DELETE リクエストを表すクラスです。

Net::HTTPRequest (24043.0)

HTTP リクエストを抽象化するクラスです。

...opfind
* Net::HTTP::Patch
* Net::HTTP::Proppatch
* Net::HTTP::Trace
* Net::HTTP::Unlock

を使用してください。

=== 例

//emlist[][ruby]{
require 'net/http'
http = Net::HTTP.new('www.example.com', 80)
req = Net::HTTP::Get.new('/somefile')
res = http.request(req)
print res.body
//}...