るりまサーチ (Ruby 3.3)

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

別のキーワード

  1. _builtin status
  2. getoptlong status_yet
  3. cgi http_status
  4. openssl status
  5. getoptlong status_started

ライブラリ

クラス

検索結果

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