44件ヒット
[1-44件を表示]
(0.054秒)
ライブラリ
-
webrick
/ httpresponse (44)
キーワード
-
content
_ length (11) -
content
_ length= (11) - filename (11)
- filename= (11)
検索結果
先頭4件
-
WEBrick
:: HTTPResponse # filename=(file) (6208.0) -
自身の内容があるファイルのそれである場合に、そのファイル名をセットします。 デフォルトは nil です。
...自身の内容があるファイルのそれである場合に、そのファイル名をセットします。
デフォルトは nil です。
@param file ファイル名を表す文字列です。... -
WEBrick
:: HTTPResponse # filename -> String | nil (6101.0) -
自身の内容があるファイルのそれである場合に、そのファイル名を返します。 デフォルトは nil です。
自身の内容があるファイルのそれである場合に、そのファイル名を返します。
デフォルトは nil です。 -
WEBrick
:: HTTPResponse # content _ length -> Integer | nil (7.0) -
Content-Length ヘッダの値を整数で表すアクセサです。デフォルトは 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-Alive
Date: Sat, 27... -
WEBrick
:: HTTPResponse # content _ length=(len) (7.0) -
Content-Length ヘッダの値を整数で表すアクセサです。デフォルトは 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-Alive
Date: Sat, 27...