るりまサーチ

最速Rubyリファレンスマニュアル検索!
12件ヒット [1-12件を表示] (0.011秒)
トップページ > クエリ:ver[x] > クラス:Net::HTTPResponse[x]

別のキーワード

  1. optparse ver
  2. optionparser ver
  3. bigdecimal ver
  4. ver optparse

ライブラリ

検索結果

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