種類
- インスタンスメソッド (176)
- モジュール関数 (11)
- 定数 (11)
- 特異メソッド (11)
ライブラリ
- ビルトイン (88)
-
cgi
/ core (11) -
cgi
/ html (33) - json (11)
-
net
/ http (22) -
rexml
/ document (11) -
webrick
/ httprequest (11) -
webrick
/ httpresponse (22)
クラス
- Array (22)
- IO (11)
-
JSON
:: State (11) - String (33)
- Thread (11)
-
WEBrick
:: HTTPRequest (11) -
WEBrick
:: HTTPResponse (22)
モジュール
-
CGI
:: HtmlExtension (33) -
CGI
:: QueryExtension (11) - Kernel (11)
-
Net
:: HTTPHeader (22) -
REXML
:: EntityConst (11)
キーワード
-
backtrace
_ locations (11) - binread (11)
-
buffer
_ initial _ length (11) -
caller
_ locations (11) -
content
_ length (44) -
content
_ length= (22) - encode (33)
-
file
_ field (11) -
password
_ field (11) - permutation (22)
-
text
_ field (11)
検索結果
先頭5件
-
REXML
:: EntityConst :: GT -> REXML :: Entity (21217.0) -
「>」「>」というエンティティを表わすオブジェクト。
...「>」「>」というエンティティを表わすオブジェクト。... -
WEBrick
:: HTTPResponse # content _ length -> Integer | nil (15352.0) -
Content-Length ヘッダの値を整数で表すアクセサです。デフォルトは nil です。
...Content-Length ヘッダの値を整数で表すアクセサです。デフォルトは nil です。
: body が String オブジェクトである場合
content_length の値が nil のとき Content-Length ヘッダには
body のサイズが使われます。nil でないとき body の実......ブジェクトである場合
content_length の値が nil のとき Content-Length ヘッダはレスポンスに含まれず、IO から全てを読み込ん
でそれをエンティティボディとします。nil でないとき IO から content_length バイトだけ読み込みそれを......エンティティボディとします。
また 2616 4.4 で定められた Content-Length ヘッダを送ってはいけない場合に当てはまる時には
content_length の値は無視され Content-Length ヘッダはレスポンスに含まれません。
@param len ヘッダの値... -
CGI
:: QueryExtension # content _ length -> Integer (15300.0) -
ENV['CONTENT_LENGTH'] を返します。
...ENV['CONTENT_LENGTH'] を返します。... -
WEBrick
:: HTTPResponse # content _ length=(len) (15252.0) -
Content-Length ヘッダの値を整数で表すアクセサです。デフォルトは nil です。
...Content-Length ヘッダの値を整数で表すアクセサです。デフォルトは nil です。
: body が String オブジェクトである場合
content_length の値が nil のとき Content-Length ヘッダには
body のサイズが使われます。nil でないとき body の実......ブジェクトである場合
content_length の値が nil のとき Content-Length ヘッダはレスポンスに含まれず、IO から全てを読み込ん
でそれをエンティティボディとします。nil でないとき IO から content_length バイトだけ読み込みそれを......エンティティボディとします。
また 2616 4.4 で定められた Content-Length ヘッダを送ってはいけない場合に当てはまる時には
content_length の値は無視され Content-Length ヘッダはレスポンスに含まれません。
@param len ヘッダの値... -
WEBrick
:: HTTPRequest # content _ length -> Integer (12332.0) -
リクエストの Content-Length ヘッダの値を整数で返します。リクエストに Content-Length ヘッダ が含まれていない場合は 0 を返します。
...リクエストの Content-Length ヘッダの値を整数で返します。リクエストに Content-Length ヘッダ
が含まれていない場合は 0 を返します。... -
Net
:: HTTPHeader # content _ length -> Integer|nil (12316.0) -
Content-Length: ヘッダフィールドの表している値を整数で返します。
...Content-Length: ヘッダフィールドの表している値を整数で返します。
ヘッダが設定されていない場合には nil を返します。
@raise Net::HTTPHeaderSyntaxError フィールドの値が不正である場合に
発生します。......//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 # content _ length=(len) (12222.0) -
Content-Length: ヘッダフィールドに値を設定します。
...Content-Length: ヘッダフィールドに値を設定します。
len に nil を与えると Content-Length: ヘッダフィールドを
削除します。
@param len 設定する値を整数で与えます。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/ind......ex.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 -> Integer (9200.0) -
This integer returns the current initial length of the buffer.
...This integer returns the current initial length of the buffer.... -
Kernel
. # caller _ locations(start = 1 , length = nil) -> [Thread :: Backtrace :: Location] | nil (6400.0) -
現在のフレームを Thread::Backtrace::Location の配列で返します。引 数で指定した値が範囲外の場合は nil を返します。
...現在のフレームを Thread::Backtrace::Location の配列で返します。引
数で指定した値が範囲外の場合は nil を返します。
@param start 開始フレームの位置を数値で指定します。
@param length 取得するフレームの個数を指定します。
@pa......[ruby]{
def test1(start, length)
locations = caller_locations(start, length)
p locations
p locations.map(&:lineno)
p locations.map(&:path)
end
def test2(start, length)
test1(start, length)
end
def test3(start, length)
test2(start, length)
end
caller_locations # => []
test3(1, nil)
# =......(1, 2)
# => ["/Users/user/test.rb:9:in `test2'", "/Users/user/test.rb:13:in `test3'"]
# => [9, 13]
# => ["/Users/user/test.rb", "/Users/user/test.rb"]
test3(2, 1)
# => ["/Users/user/test.rb:13:in `test3'"]
# => [13]
# => ["/Users/user/test.rb"]
//}
@see Thread::Backtrace::Location, Kernel.#caller... -
Thread
# backtrace _ locations(start = 0 , length = nil) -> [Thread :: Backtrace :: Location] | nil (6400.0) -
スレッドの現在のバックトレースを Thread::Backtrace::Location の配 列で返します。
...を Thread::Backtrace::Location の配
列で返します。
引数で指定した値が範囲外の場合、スレッドがすでに終了している場合は nil
を返します。
@param start 開始フレームの位置を数値で指定します。
@param length 取得するフレームの......ブジェクトを指定します。
Kernel.#caller_locations と似ていますが、本メソッドは self に限定
した情報を返します。
//emlist[例][ruby]{
thread = Thread.new { sleep 1 }
thread.run
thread.backtrace_locations # => ["/path/to/test.rb:1:in `sleep'", "/path/to/test.rb......:1:in `block in <main>'"]
//}
@see Thread::Backtrace::Location...