22件ヒット
[1-22件を表示]
(0.251秒)
クラス
-
Net
:: HTTPResponse (11) -
OpenSSL
:: Config (11)
検索結果
-
Net
:: HTTPResponse # code -> String (21114.0) -
HTTP のリザルトコードです。例えば '302' などです。
...HTTP のリザルトコードです。例えば '302' などです。
この値を見ることでレスポンスの種類を判別できますが、
レスポンスオブジェクトがどのクラスのインスタンスかを
見ることでもレスポンスの種類を判別できます。
//......emlist[例][ruby]{
require 'net/http'
uri = "http://www.example.com/index.html"
response = Net::HTTP.get_response(URI.parse(uri))
response.code # => "200"
//}... -
OpenSSL
:: Config # each {|section , key , value| . . . } -> self (3019.0) -
オブジェクトに含まれる全ての設定情報を順にブロックに渡し 呼び出します。
...た値の文字列、の3つです。
require 'openssl'
conf = OpenSSL::Config.load(OpenSSL::Config::DEFAULT_CONFIG_FILE)
conf.each{|section, key, value| p [section, key, value]}
# => ["req_distinguished_name", "countryName", "Country Name (2 letter code)"]
# => ["req_distinguished_name",...