るりまサーチ (Ruby 2.4.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.075秒)
トップページ > クエリ:String[x] > バージョン:2.4.0[x] > クエリ:h[x] > クエリ:Ruby[x] > クラス:Net::HTTPGenericRequest[x] > クエリ:method[x]

別のキーワード

  1. _builtin to_h
  2. struct to_h
  3. array to_h
  4. openstruct to_h
  5. ostruct to_h

ライブラリ

検索結果

Net::HTTPGenericRequest#method -> String (72964.0)

リクエストの HTTP メソッドを文字列で返します。

リクエストの HTTP メソッドを文字列で返します。

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

uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Post.new(uri.request_uri)
req.method # => "POST"
req = Net::HTTP::Get.new(uri.request_uri)
req.method # => "GET"
//}