5件ヒット
[1-5件を表示]
(0.051秒)
種類
- インスタンスメソッド (4)
- モジュール関数 (1)
ライブラリ
- drb (1)
- open-uri (1)
- optparse (1)
-
webrick
/ httpresponse (1) -
webrick
/ httpstatus (1)
クラス
モジュール
-
OpenURI
:: Meta (1) -
WEBrick
:: HTTPStatus (1)
キーワード
-
reason
_ phrase (2) - status (1)
検索結果
先頭5件
-
DRb
:: DRbRemoteError # reason -> String (54907.0) -
wrapされている例外クラスの名前を返します。
wrapされている例外クラスの名前を返します。 -
OptionParser
:: ParseError # reason -> String (54907.0) -
エラーの内容を文字列で返します。
エラーの内容を文字列で返します。
@return 文字列を返します。 -
WEBrick
:: HTTPResponse # reason _ phrase -> String | nil (19003.0) -
HTTP のレスポンスの最初の行の reason phrase を返します。 この値が nil の場合 reason phrase は status から生成されます。 デフォルトは nil です。
HTTP のレスポンスの最初の行の reason phrase を返します。
この値が nil の場合 reason phrase は status から生成されます。
デフォルトは nil です。 -
WEBrick
:: HTTPStatus . # reason _ phrase(code) -> String (18973.0) -
指定された整数が表すステータスコードに対応する reason phrase を表す文字列を返します。
指定された整数が表すステータスコードに対応する reason phrase
を表す文字列を返します。
@param code HTTP のステータスコードを表す整数か文字列を指定します。
require 'webrick'
p WEBrick::HTTPStatus.reason_phrase(304) #=> "Not Modified" -
OpenURI
:: Meta # status -> [String] (652.0) -
対象となるリソースのステータスコードと reason phrase を文字列の配列として返します。
対象となるリソースのステータスコードと reason phrase を文字列の配列として返します。
//emlist[例][ruby]{
require 'open-uri'
URI.open('http://example.com/') {|f|
p f.status #=> ["200", "OK"]
}
//}