るりまサーチ (Ruby 2.1.0)

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

別のキーワード

  1. _builtin to_h
  2. struct to_h
  3. array to_h
  4. hash to_h
  5. openstruct to_h

ライブラリ

クラス

検索結果

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