るりまサーチ (Ruby 2.5.0)

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

別のキーワード

  1. cgi/html doctype
  2. cgi/html form
  3. cgi/html element_init
  4. cgi/html multipart_form
  5. cgi/html html

ライブラリ

検索結果

Net::HTTPGenericRequest#method -> String (54364.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"
//}