るりまサーチ (Ruby 2.6.0)

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

別のキーワード

  1. httpresponse read_body
  2. httpresponse http_version
  3. httpresponse header
  4. httpresponse body
  5. httpresponse status_line

ライブラリ

クラス

検索結果

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