種類
- インスタンスメソッド (264)
- 特異メソッド (72)
- 文書 (36)
- モジュール関数 (24)
ライブラリ
- ビルトイン (216)
- json (12)
-
net
/ http (36) - openssl (12)
- rss (36)
-
rubygems
/ package / tar _ reader / entry (12) -
webrick
/ httpresponse (24) - zlib (12)
クラス
-
ARGF
. class (12) - Array (72)
-
Gem
:: Package :: TarReader :: Entry (12) - IO (84)
-
JSON
:: State (12) -
RSS
:: Maker :: RSS20 :: Items :: Item :: Enclosure (12) -
RSS
:: Rss :: Channel :: Item :: Enclosure (24) - Thread (24)
-
WEBrick
:: HTTPResponse (24) -
Zlib
:: GzipReader (12)
モジュール
- Kernel (24)
-
Net
:: HTTPHeader (36) -
OpenSSL
:: Buffering (12)
キーワード
-
backtrace
_ locations (24) - binread (12)
-
buffer
_ initial _ length= (12) -
caller
_ locations (24) -
content
_ length (24) -
content
_ length= (24) -
copy
_ stream (24) - delete (12)
- fill (72)
- length (12)
- read (96)
-
ruby 1
. 8 . 2 feature (12) -
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 9 feature (12)
検索結果
先頭5件
-
RSS
:: Rss :: Channel :: Item :: Enclosure # length= (15101.0) -
@todo
@todo -
RSS
:: Maker :: RSS20 :: Items :: Item :: Enclosure # length=() (15100.0) -
@todo
@todo -
Net
:: HTTPHeader # content _ length=(len) (6106.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) (6100.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) (3106.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 (101.0) -
文字列を通信路から読み込み、返します。
文字列を通信路から読み込み、返します。
読み込みが終端に到達している場合は nil を返します。
length で読み込むバイト数を指定します。
length に 0 を渡した場合は空文字列を返します。
length に nil を渡した場合(省略した場合)は最後
までのデータを読み込みます。
bufに文字列を渡した場合はその領域が出力用のバッファとして利用されます。
IO#read と同様です。
@param length 読み込むバイト数
@param buf 読み込みバッファ -
Net
:: HTTPHeader # content _ length -> Integer|nil (6.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 (6.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 (6.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...