5件ヒット
[1-5件を表示]
(0.193秒)
ライブラリ
- rake (1)
-
rubygems
/ user _ interaction (1) -
webrick
/ httpresponse (3)
クラス
-
Gem
:: StreamUI (1) -
WEBrick
:: HTTPResponse (3)
モジュール
- FileUtils (1)
キーワード
-
reason
_ phrase= (1) - sh (1)
-
status
_ line (1) -
terminate
_ interaction (1)
検索結果
先頭5件
-
WEBrick
:: HTTPResponse # status=(status) (63322.0) -
レスポンスのステータスコードを整数で指定します。 reason_phrase も適切なものに設定されます。
レスポンスのステータスコードを整数で指定します。
reason_phrase も適切なものに設定されます。
@param status ステータスコードを整数で指定します。
require 'webrick'
res = WEBrick::HTTPResponse.new( { :HTTPVersion => "1.1" } )
res.status = 404
p res.reason_phrase #=> "Not Found" -
Gem
:: StreamUI # terminate _ interaction(status = 0) -> () (27607.0) -
アプリケーションを終了します。
アプリケーションを終了します。
@param status 終了ステータスを指定します。デフォルトは 0 (成功) です。
@raise Gem::SystemExitException このメソッドを呼び出すと必ず発生する例外です。 -
WEBrick
:: HTTPResponse # reason _ phrase=(val) (18322.0) -
HTTP のレスポンスの最初の行の reason phrase をセットします。 この値が nil の場合 reason phrase は status から生成されます。 デフォルトは nil です。
HTTP のレスポンスの最初の行の reason phrase をセットします。
この値が nil の場合 reason phrase は status から生成されます。
デフォルトは nil です。
@param val reason phrase を表す文字列を指定します。
require 'webrick'
res = WEBrick::HTTPResponse.new( { :HTTPVersion => "1.1" } )
res.status = 404
p res.reason_phrase #=> "Not Found" -
WEBrick
:: HTTPResponse # status _ line -> String (18322.0) -
HTTP のステータスラインを CR+LF 付き文字列で返します。
HTTP のステータスラインを CR+LF 付き文字列で返します。
require 'webrick'
res = WEBrick::HTTPResponse.new( { :HTTPVersion => "1.1" } )
res.status = 404
p res.status_line #=> "HTTP/1.1 404 Not Found \r\n" -
FileUtils
# sh(*cmd) {|result , status| . . . } (9322.0) -
与えられたコマンドを実行します。
与えられたコマンドを実行します。
与えられた引数が複数の場合、シェルを経由しないでコマンドを実行します。
@param cmd 引数の解釈に関しては Kernel.#exec を参照してください。
例:
sh %{ls -ltr}
sh 'ls', 'file with spaces'
# check exit status after command runs
sh %{grep pattern file} do |ok, res|
if ! ok
puts "pattern not found (status = #...