るりまサーチ (Ruby 2.3.0)

最速Rubyリファレンスマニュアル検索!
3件ヒット [1-3件を表示] (0.040秒)
トップページ > クエリ:http[x] > バージョン:2.3.0[x] > クエリ:method[x] > ライブラリ:net/http[x]

別のキーワード

  1. net/http get
  2. http get
  3. http start
  4. net/http start
  5. net/http fetch

クラス

モジュール

検索結果

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

Net::HTTPHeader#method -> String (63430.0)

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

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

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

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

Net::HTTPMethodNotAllowed (36103.0)

HTTP レスポンス 405 (Method Not Allowed) を表現するクラスです。

HTTP レスポンス 405 (Method Not Allowed) を表現するクラスです。

詳しくは 7231 Section 6.5.5 を見てください。