960件ヒット
[901-960件を表示]
(0.034秒)
別のキーワード
ライブラリ
- ビルトイン (264)
-
cgi
/ core (12) - csv (36)
- erb (24)
-
irb
/ output-method (36) -
net
/ http (96) -
net
/ pop (108) -
net
/ smtp (24) -
net
/ telnet (6) - openssl (48)
- pp (36)
- prettyprint (72)
-
rubygems
/ commands / dependency _ command (12) -
rubygems
/ requirement (12) - shell (6)
-
shell
/ command-processor (6) -
shell
/ filter (6) - socket (36)
- stringio (36)
-
webrick
/ httpresponse (48) - zlib (36)
クラス
-
ARGF
. class (36) - Addrinfo (24)
- Array (60)
- CGI (12)
- CSV (36)
- ERB (24)
-
File
:: Stat (12) -
Gem
:: Commands :: DependencyCommand (12) -
Gem
:: Requirement (12) - IO (72)
-
IRB
:: OutputMethod (24) -
IRB
:: StdioOutputMethod (12) - Integer (72)
- Module (12)
-
Net
:: HTTP (96) -
Net
:: POPMail (108) -
Net
:: SMTP (24) -
Net
:: Telnet (6) - Object (24)
-
OpenSSL
:: BN (12) - PP (12)
- PrettyPrint (72)
- Shell (6)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6) - Socket (12)
- StringIO (36)
-
WEBrick
:: HTTPResponse (48) -
Zlib
:: GzipReader (12) -
Zlib
:: GzipWriter (24)
モジュール
-
OpenSSL
:: Buffering (36)
キーワード
- << (12)
- <=> (12)
- [] (24)
-
add
_ row (12) - all (36)
- body= (12)
- breakable (24)
- chunked= (12)
- connect (12)
-
connect
_ from (24) -
content
_ length (12) -
content
_ length= (12) - cycle (24)
-
def
_ class (12) -
def
_ module (12) - downto (24)
- fetch (36)
- get2 (24)
- group (12)
- header (12)
-
inplace
_ mode= (12) -
instance
_ method (12) - mail (36)
- nest (12)
- pop (36)
- post2 (24)
- pp (12)
-
pretty
_ print (36) -
pretty
_ print _ cycle (12) -
print
_ dependencies (12) - printf (60)
- printn (12)
- puts (14)
- ready (12)
- reopen (36)
-
request
_ get (24) -
request
_ post (24) - sync= (12)
- sysseek (12)
- system (18)
- text (24)
- ungetc (12)
- upto (24)
- write (2)
検索結果
先頭5件
-
WEBrick
:: HTTPResponse # chunked=(flag) (13.0) -
真に設定するとクライアントに返す内容(エンティティボディ)を chunk に分けるようになります。
...視されます。
@param flag true を指定した場合、レスポンスを chunk に分けてクライアントに返します。
require 'webrick'
include WEBrick
res = HTTPResponse.new( { :HTTPVersion => "1.1" } )
res.body = 'hoge'
res.chunked = true
print res.to_s
#=> 出力... -
WEBrick
:: HTTPResponse # content _ length -> Integer | nil (13.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=(len) (13.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
#... -
Zlib
:: GzipReader # ungetc(char) -> nil (13.0) -
IO クラスの同名メソッド IO#ungetc と同じです。
...ソッドが
呼び出された時。
* EOF まで読み込んだ後、Zlib::GzipReader#unused メソッドが
呼び出された時。
@param char 読み戻したい1文字かそのコードポイントを指定します。
@raise Zlib::Error Zlib::Error を参照
@raise Zlib::GzipFile:......これで作成する。
Zlib::GzipWriter.open('hoge.gz') { |gz|
gz.print 'hogefuga'
}
=end
Zlib::GzipReader.open('hoge.gz') { |gz|
begin
c1 = gz.getc
c2 = gz.getc
break if c2.nil?
printf "%c -> %c\n", c1, c2
gz.ungetc(c2)
end while true
}
#=>... -
IO
# reopen(io) -> self (10.0) -
自身を指定された io に繋ぎ換えます。
...クラスも io に等しくなることに注意してください。
IO#pos, IO#lineno などは指定された io と等しくなります。
@param io 自身を繋ぎ換えたい IO オブジェクトを指定します。
@raise IOError 指定された io が close されている場合に発...