2件ヒット
[1-2件を表示]
(0.078秒)
クラス
-
Net
:: HTTPResponse (1) - OptionParser (1)
検索結果
-
OptionParser
# ver -> String (63985.0) -
program_name、version と release から生成したバージョンを表す文字列を返します。
program_name、version と release から生成したバージョンを表す文字列を返します。
//emlist[例][ruby]{
require "optparse"
OptionParser.new do |opts|
opts.banner = "Usage: example.rb [options]"
opts.program_name = "Optparse Example"
opts.version = [0, 1]
opts.release = "2019-05-01"
opts.on_tail("--version", "Show v... -
Net
:: HTTPResponse # http _ version -> String (18964.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"
//}