11件ヒット
[1-11件を表示]
(0.049秒)
ライブラリ
-
net
/ http (11)
クラス
-
Net
:: HTTPResponse (11)
検索結果
-
Net
:: HTTPResponse # code -> String (18113.0) -
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"
//}...