るりまサーチ (Ruby 3.2)

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

別のキーワード

  1. response new
  2. net/http response
  3. imap add_response_handler
  4. net/http get_response
  5. http get_response

クラス

検索結果

Net::HTTPResponse#http_version -> String (81682.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"
//}...