420件ヒット
[401-420件を表示]
(0.063秒)
ライブラリ
-
webrick
/ httpresponse (420)
キーワード
- [] (12)
- []= (12)
- body (12)
- body= (12)
- chunked= (12)
- chunked? (12)
- config (12)
-
content
_ length (12) -
content
_ length= (12) -
content
_ type (12) -
content
_ type= (12) - each (12)
- filename (12)
- filename= (12)
- header (12)
-
http
_ version (12) -
keep
_ alive (12) -
keep
_ alive= (12) -
keep
_ alive? (12) -
reason
_ phrase (12) -
reason
_ phrase= (12) -
request
_ http _ version (12) -
request
_ http _ version= (12) -
request
_ method (12) -
request
_ method= (12) -
request
_ uri (12) -
request
_ uri= (12) -
sent
_ size (12) -
set
_ error (12) -
set
_ redirect (12) - status (12)
- status= (12)
-
status
_ line (12) -
to
_ s (12)
検索結果
-
WEBrick
:: HTTPResponse # status _ line -> String (2.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 (2.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