22件ヒット
[1-22件を表示]
(0.047秒)
ライブラリ
-
webrick
/ httpresponse (22)
キーワード
-
content
_ length (11) -
content
_ length= (11)
検索結果
先頭2件
-
WEBrick
:: HTTPResponse # content _ length -> Integer | nil (114.0) -
Content-Length ヘッダの値を整数で表すアクセサです。デフォルトは nil です。
...指定します。nil を指定することは出来ません。
require 'webrick'
include WEBrick
res = HTTPResponse.new( { :HTTPVersion => "1.1" } )
f = File.new('testfile')
res.body = f
res.content_length = 2
print res.to_s
#=> 出力結果
HTTP/1.1 200 OK
Connection: Keep... -
WEBrick
:: HTTPResponse # content _ length=(len) (14.0) -
Content-Length ヘッダの値を整数で表すアクセサです。デフォルトは nil です。
...指定します。nil を指定することは出来ません。
require 'webrick'
include WEBrick
res = HTTPResponse.new( { :HTTPVersion => "1.1" } )
f = File.new('testfile')
res.body = f
res.content_length = 2
print res.to_s
#=> 出力結果
HTTP/1.1 200 OK
Connection: Keep...