るりまサーチ (Ruby 2.3.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.035秒)
トップページ > バージョン:2.3.0[x] > クエリ:http[x] > クエリ:get[x] > クエリ:Get[x] > クエリ:http_version[x]

別のキーワード

  1. tracer set_get_line_procs
  2. webrick/httpservlet do_get
  3. net/http get
  4. http get
  5. http get_response

ライブラリ

クラス

検索結果

Net::HTTPResponse#http_version -> String (117781.0)

サーバがサポートしている HTTP のバージョンを文字列で返します。

サーバがサポートしている HTTP のバージョンを文字列で返します。

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

uri = "http://www.example.com/index.html"
response = Net::HTTP.get_response(URI.parse(uri))
response.http_version # => "1.1"
//}