431件ヒット
[401-431件を表示]
(0.031秒)
ライブラリ
- ビルトイン (24)
- pathname (347)
- rake (12)
-
webrick
/ httpresponse (24) - zlib (24)
クラス
- IO (24)
- Pathname (347)
-
Rake
:: FileList (12) -
WEBrick
:: HTTPResponse (24) -
Zlib
:: GzipWriter (24)
キーワード
- << (12)
- atime (12)
- basename (12)
- birthtime (11)
- chmod (12)
- chown (12)
-
content
_ length (12) -
content
_ length= (12) - ctime (12)
- dirname (12)
- extname (12)
- file? (12)
- fnmatch (12)
- fnmatch? (12)
- ftype (12)
- lchmod (12)
- lchown (12)
- lstat (12)
-
make
_ link (12) -
make
_ symlink (12) - mtime (12)
- open (24)
- readlink (12)
- rename (12)
- split (12)
- stat (12)
- syswrite (12)
-
to
_ path (12) - truncate (12)
- utime (12)
- write (24)
検索結果
先頭3件
-
Zlib
:: GzipWriter # <<(str) -> self (29.0) -
str を出力します。str が文字列でない場合は to_s を用いて 文字列に変換します。
... to_s を用いて
文字列に変換します。
@param str 出力したいオブジェクトを与えます。
require 'zlib'
filename='hoge1.gz'
fw = File.open(filename, "w")
Zlib::GzipWriter.wrap(fw, Zlib::BEST_COMPRESSION){|gz|
gz << "hoge" << "fuga"
}
fr = File.open(filename... -
WEBrick
:: HTTPResponse # content _ length -> Integer | nil (13.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 Oct 2007 12:04:32 GMT
Serve... -
WEBrick
:: HTTPResponse # content _ length=(len) (13.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 Oct 2007 12:04:32 GMT
Serve...