るりまサーチ

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

別のキーワード

  1. _builtin -
  2. open-uri open
  3. irb/input-method new
  4. irb/input-method gets
  5. matrix -

検索結果

<< 1 2 3 ... > >>

REXML::Instruction#content -> String | nil (18345.0)

XML 処理命令の内容を返します。

...ersion="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/css" href="style.css"?>
<?foobar?>
<root />
EOS
doc[2] # => <?p-i xml-stylesheet ...?>
doc[2].target # => "xml-stylesheet"
doc[2].content # => "type=\"text/css\" href=\"style.css\""
doc[4].target # => "foobar"
doc[4].content # => nil
//}...

WEBrick::HTTPResponse#content_length -> Integer | nil (6432.0)

Content-Length ヘッダの値を整数で表すアクセサです。デフォルトは nil です。

...
Content
-Length ヘッダの値を整数で表すアクセサです。デフォルトは nil です。

: body が String オブジェクトである場合
content
_length の値が nil のとき Content-Length ヘッダには
body のサイズが使われます。nil でないとき body の実...
...IO オブジェクトである場合
content
_length の値が nil のとき Content-Length ヘッダはレスポンスに含まれず、IO から全てを読み込ん
でそれをエンティティボディとします。nil でないとき IO から content_length バイトだけ読み込み...
...
エンティティボディとします。

また 2616 4.4 で定められた Content-Length ヘッダを送ってはいけない場合に当てはまる時には
content
_length の値は無視され Content-Length ヘッダはレスポンスに含まれません。

@param len ヘッダの...

Net::HTTPHeader#content_type -> String|nil (6377.0)

"text/html" のような Content-Type を表す 文字列を返します。

..."text/html" のような Content-Type を表す
文字列を返します。

Content
-Type: ヘッダフィールドが存在しない場合には nil を返します。

//emlist[例][ruby]{
require 'net/http'

uri = URI.parse('http://www.example.com/comments.cgi?post=comment')
req = Net::HTTP::Post...
....new(uri.request_uri)
req.content_type # => nil
req.content_type = 'multipart/form-data'
req.content_type # => "multipart/form-data"
//}...

Net::HTTPHeader#content_range -> Range|nil (6365.0)

Content-Range: ヘッダフィールドの値を Range で返します。 Range の表わす長さは Net::HTTPHeader#range_length で得られます。

...
Content
-Range: ヘッダフィールドの値を Range で返します。
Range の表わす長さは Net::HTTPHeader#range_length で得られます。

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

//emlist[例][ruby]{
require 'net/http'

uri = URI.parse('http://www.exa...
...mple.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.content_range # => nil
req['Content-Range'] = "bytes 0-499/1234"
req.content_range # => 0..499
//}...

Net::HTTPHeader#content_length -> Integer|nil (6353.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
//}...

絞り込み条件を変える

OpenURI::Meta#content_type -> String (6338.0)

対象となるリソースの Content-Type を文字列で返します。Content-Type ヘッダの情報が使われます。 Content-Type ヘッダがない場合は、"application/octet-stream" を返します。

...ースの Content-Type を文字列で返します。Content-Type ヘッダの情報が使われます。
Content
-Type ヘッダがない場合は、"application/octet-stream" を返します。

//emlist[例][ruby]{
require 'open-uri'
open('http://www.ruby-lang.org/') {|f|
p f.content_type #=> "...
...ースの Content-Type を文字列で返します。Content-Type ヘッダの情報が使われます。
Content
-Type ヘッダがない場合は、"application/octet-stream" を返します。

//emlist[例][ruby]{
require 'open-uri'
URI.open('http://www.ruby-lang.org/') {|f|
p f.content_type #...

Net::IMAP::BodyTypeBasic#content_id -> String | nil (6335.0)

Content-ID の値を文字列で返します。

...Content-ID の値を文字列で返します。

@see 2045...

Net::IMAP::BodyTypeMessage#content_id -> String | nil (6335.0)

Content-ID の値を文字列で返します。

...Content-ID の値を文字列で返します。

@see 2045...

Net::IMAP::BodyTypeText#content_id -> String | nil (6335.0)

Content-ID の値を文字列で返します。

...Content-ID の値を文字列で返します。

@see 2045...

WEBrick::HTTPRequest#content_type -> String | nil (6335.0)

リクエストの Content-Type ヘッダを文字列で返します。

...リクエストの Content-Type ヘッダを文字列で返します。...

絞り込み条件を変える

<< 1 2 3 ... > >>