11件ヒット
[1-11件を表示]
(0.101秒)
別のキーワード
ライブラリ
-
webrick
/ httpresponse (11)
クラス
検索結果
-
WEBrick
:: HTTPResponse # chunked=(flag) (18107.0) -
真に設定するとクライアントに返す内容(エンティティボディ)を chunk に分けるようになります。
...ントに返します。
require 'webrick'
include WEBrick
res = HTTPResponse.new( { :HTTPVersion => "1.1" } )
res.body = 'hoge'
res.chunked = true
print res.to_s
#=> 出力結果
HTTP/1.1 200 OK
Connection: Keep-Alive
Date: Sat, 27 Oct 2007 09:04:28 GMT
Server:
Transfer-En...