242件ヒット
[1-100件を表示]
(0.079秒)
ライブラリ
- ビルトイン (110)
- json (11)
-
net
/ http (33) - openssl (11)
- rss (33)
-
rubygems
/ package / tar _ reader / entry (11) -
webrick
/ httpresponse (22) - zlib (11)
クラス
-
ARGF
. class (11) - Array (66)
-
Gem
:: Package :: TarReader :: Entry (11) - IO (11)
-
JSON
:: State (11) -
RSS
:: Maker :: RSS20 :: Items :: Item :: Enclosure (11) -
RSS
:: Rss :: Channel :: Item :: Enclosure (22) - Thread (22)
-
WEBrick
:: HTTPResponse (22) -
Zlib
:: GzipReader (11)
モジュール
-
Net
:: HTTPHeader (33) -
OpenSSL
:: Buffering (11)
キーワード
-
backtrace
_ locations (22) -
buffer
_ initial _ length= (11) -
content
_ length (22) -
content
_ length= (22) - delete (11)
- fill (66)
- length (11)
- read (55)
検索結果
先頭5件
-
RSS
:: Rss :: Channel :: Item :: Enclosure # length= (15102.0) -
@todo
@todo -
RSS
:: Maker :: RSS20 :: Items :: Item :: Enclosure # length=() (15101.0) -
@todo
@todo -
Net
:: HTTPHeader # content _ length=(len) (6107.0) -
Content-Length: ヘッダフィールドに値を設定します。
...。
@param len 設定する値を整数で与えます。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.content_length # => nil
req.content_length = 10 # => 10
req.content_length # => 10
//}... -
JSON
:: State # buffer _ initial _ length=(length) (6101.0) -
This sets the initial length of the buffer to length, if length > 0, otherwise its value isn't changed.
This sets the initial length of the buffer to length, if length > 0,
otherwise its value isn't changed. -
WEBrick
:: HTTPResponse # content _ length=(len) (3107.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
Server:
Content-Len... -
OpenSSL
:: Buffering # read(length=nil , buf=nil) -> String | nil (102.0) -
文字列を通信路から読み込み、返します。
文字列を通信路から読み込み、返します。
読み込みが終端に到達している場合は nil を返します。
length で読み込むバイト数を指定します。
length に 0 を渡した場合は空文字列を返します。
length に nil を渡した場合(省略した場合)は最後
までのデータを読み込みます。
bufに文字列を渡した場合はその領域が出力用のバッファとして利用されます。
IO#read と同様です。
@param length 読み込むバイト数
@param buf 読み込みバッファ -
Net
:: HTTPHeader # content _ length -> Integer|nil (7.0) -
Content-Length: ヘッダフィールドの表している値を整数で返します。
...正である場合に
発生します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.content_length # => nil
req.content_length = 10
req.content_length # => 10
//}... -
Net
:: HTTPHeader # delete(key) -> [String] | nil (7.0) -
key ヘッダフィールドを削除します。
...は
nil を返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.content_length = 10
req.content_length # => 10
req.delete("Content-Length") # => ["10"]
req.content_length # => 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 Oct 2007 12:04:32 GMT
Server:
Content-Len... -
Array
# fill {|index| . . . } -> self (3.0) -
すべての要素に val をセットします。
すべての要素に val をセットします。
このメソッドが val のコピーでなく val 自身をセットする
ことに注意してください。
val の代わりにブロックを指定するとブロックの評価結果を値とします。
@param val 自身にセットしたいオブジェクトを指定します。
//emlist[例][ruby]{
a = [0, 1, 2, 3, 4]
a.fill(10)
p a #=> [10, 10, 10, 10, 10]
a = [0, 1, 2, 3, 4]
a.fill("a")
p a #=> ["a", "a", "a", "a", "a"]
a[0].capitali...