種類
- インスタンスメソッド (216)
- 特異メソッド (60)
- クラス (36)
- ライブラリ (12)
ライブラリ
-
net
/ http (12) -
webrick
/ cgi (12) -
webrick
/ httprequest (12) -
webrick
/ httpresponse (144) -
webrick
/ httpserver (12) -
webrick
/ httpstatus (12) -
webrick
/ httpversion (108)
クラス
-
WEBrick
:: CGI (12) -
WEBrick
:: HTTPRequest (12) -
WEBrick
:: HTTPResponse (144) -
WEBrick
:: HTTPServer (12) -
WEBrick
:: HTTPVersion (96)
キーワード
- <=> (12)
- HTTPVersionNotSupported (24)
- body= (12)
- chunked= (12)
-
content
_ length (12) -
content
_ length= (12) - convert (12)
-
http
_ version (24) - major (12)
- major= (12)
- minor (12)
- minor= (12)
- new (48)
-
reason
_ phrase= (12) -
request
_ http _ version (12) -
request
_ http _ version= (12) - status= (12)
-
status
_ line (12) -
to
_ s (24) -
webrick
/ httpversion (12)
検索結果
-
WEBrick
:: HTTPResponse # status _ line -> String (6.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"... -
WEBrick
:: HTTPResponse # to _ s -> String (6.0) -
実際にクライアントに送られるデータを文字列として返します。
...ライアントに送られるデータを文字列として返します。
require 'webrick'
include WEBrick
res = HTTPResponse.new( { :HTTPVersion => "1.1" } )
res.body = 'hoge'
print res.to_s
#=> 出力結果
HTTP/1.1 200 OK
Connection: Keep-Alive
Date: Sat, 27 Oct 2007 08:58:...