324件ヒット
[301-324件を表示]
(0.161秒)
種類
- インスタンスメソッド (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=(status) (3006.0) -
レスポンスのステータスコードを整数で指定します。 reason_phrase も適切なものに設定されます。
...数で指定します。
reason_phrase も適切なものに設定されます。
@param status ステータスコードを整数で指定します。
require 'webrick'
res = WEBrick::HTTPResponse.new( { :HTTPVersion => "1.1" } )
res.status = 404
p res.reason_phrase #=> "Not Found"... -
WEBrick
:: HTTPResponse # to _ s -> String (3006.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:49 GMT
Server:
Content-Length: 4
hoge...