2件ヒット
[1-2件を表示]
(0.032秒)
別のキーワード
クラス
検索結果
先頭2件
-
WEBrick
:: HTTPResponse # content _ length=(len) (108325.0) -
Content-Length ヘッダの値を整数で表すアクセサです。デフォルトは nil です。
...まれません。
@param len ヘッダの値を整数で指定します。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... -
WEBrick
:: HTTPResponse # content _ length -> Integer | nil (63025.0) -
Content-Length ヘッダの値を整数で表すアクセサです。デフォルトは nil です。
...まれません。
@param len ヘッダの値を整数で指定します。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...