るりまサーチ (Ruby 2.7.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.064秒)
トップページ > バージョン:2.7.0[x] > クエリ:String[x] > クエリ:tr[x] > クエリ:status_line[x]

別のキーワード

  1. matrix tr
  2. string tr_s!
  3. string tr_s
  4. string tr!
  5. string tr

ライブラリ

クラス

検索結果

WEBrick::HTTPResponse#status_line -> String (54925.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"