るりまサーチ

最速Rubyリファレンスマニュアル検索!
88件ヒット [1-88件を表示] (0.153秒)

別のキーワード

  1. rss content
  2. rss content=
  3. net/imap content_id
  4. item content=
  5. item content

ライブラリ

モジュール

キーワード

検索結果

WEBrick::HTTPResponse#content_length -> Integer | nil (24233.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 バイトだけ読み込みそ...
....4 で定められた Content-Length ヘッダを送ってはいけない場合に当てはまる時には
content_length
の値は無視され Content-Length ヘッダはレスポンスに含まれません。

@param len ヘッダの値を整数で指定します。nil を指定することは出...

Net::HTTPHeader#content_length -> Integer|nil (24220.0)

Content-Length: ヘッダフィールドの表している値を整数で返します。

...t-Length: ヘッダフィールドの表している値を整数で返します。

ヘッダが設定されていない場合には nil を返します。

@raise Net::HTTPHeaderSyntaxError フィールドの値が不正である場合に
発生します。

//emli...
...st[例][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
//}...

CGI::QueryExtension#content_length -> Integer (24218.0)

ENV['CONTENT_LENGTH'] を返します。

...ENV['CONTENT_LENGTH'] を返します。...

WEBrick::HTTPRequest#content_length -> Integer (24202.0)

リクエストの Content-Length ヘッダの値を整数で返します。リクエストに Content-Length ヘッダ が含まれていない場合は 0 を返します。

...リクエストの Content-Length ヘッダの値を整数で返します。リクエストに Content-Length ヘッダ
が含まれていない場合は 0 を返します。...

WEBrick::HTTPResponse#content_length=(len) (12333.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 バイトだけ読み込みそ...
....4 で定められた Content-Length ヘッダを送ってはいけない場合に当てはまる時には
content_length
の値は無視され Content-Length ヘッダはレスポンスに含まれません。

@param len ヘッダの値を整数で指定します。nil を指定することは出...

絞り込み条件を変える

Net::HTTPHeader#content_length=(len) (12320.0)

Content-Length: ヘッダフィールドに値を設定します。

...-Length: ヘッダフィールドに値を設定します。

l
en に nil を与えると 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
//}...

Net::HTTPHeader#delete(key) -> [String] | nil (6119.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#[]=(field, val) (107.0)

レスポンスの該当するヘッダに val を設定します。

...ヘッダに val を設定します。

@param field ヘッダ名を文字列で指定します。大文字と小文字を区別しません。

@param val ヘッダの値を指定します。to_s メソッドによって文字列に変換されます。

require 'time'
res['last-modified'] = Ti...
...me.now.httpdate

@see WEBrick::HTTPResponse#chunked?, WEBrick::HTTPResponse#content_length,
WEBrick::HTTPResponse#content_type...