るりまサーチ

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

別のキーワード

  1. openssl t61string
  2. asn1 t61string
  3. t61string new
  4. fiddle type_size_t
  5. matrix t

ライブラリ

モジュール

キーワード

検索結果

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

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

...mlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<?xml version="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
//}...

Net::IMAP::BodyTypeBasic#encoding -> String (21234.0)

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

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

@see 2045...

Net::IMAP::BodyTypeMessage#encoding -> String (21234.0)

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

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

@see 2045...

Net::IMAP::BodyTypeText#encoding -> String (21234.0)

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

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

@see 2045...

OpenURI::Meta#content_encoding -> [String] (18379.0)

対象となるリソースの Content-Encoding を文字列の配列として返します。 Content-Encoding ヘッダがない場合は、空の配列を返します。

...となるリソースの Content-Encoding を文字列の配列として返します。
Content
-Encoding ヘッダがない場合は、空の配列を返します。

例:

//emlist[例][ruby]{
require 'open-uri'
open('http://example.com/f.tar.gz') {|f|
p f.content_encoding #=> ["x-gzip"]
}
//}...
...なるリソースの Content-Encoding を文字列の配列として返します。
Content
-Encoding ヘッダがない場合は、空の配列を返します。

例:

//emlist[例][ruby]{
require 'open-uri'
URI.open('http://example.com/f.tar.gz') {|f|
p f.content_encoding #=> ["x-gzip"]
}
//}...

絞り込み条件を変える

OpenURI::Meta#meta -> Hash (9113.0)

ヘッダを収録したハッシュを返します。

...//emlist[例][ruby]{
require 'open-uri'
open('http://example.com/') {|f|
p f.meta
#=> {"date"=>"Sun, 04 May 2008 11:26:40 GMT",
# "content-type"=>"text/html;charset=utf-8",
# "server"=>"Apache/2.0.54 (Debian GNU/Linux) mod_ssl/2.0.54 OpenSSL/0.9.7e",
# "transfer-encoding"=>"chun...
...//emlist[例][ruby]{
require 'open-uri'
URI.open('http://example.com/') {|f|
p f.meta
#=> {"date"=>"Sun, 04 May 2008 11:26:40 GMT",
# "content-type"=>"text/html;charset=utf-8",
# "server"=>"Apache/2.0.54 (Debian GNU/Linux) mod_ssl/2.0.54 OpenSSL/0.9.7e",
# "transfer-encoding"=>"ch...

REXML::Instruction#target -> String (6113.0)

XML 処理命令のターゲットを返します。

...ist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/css" href="style.css"?>
<root />
EOS
doc[2] # => <?p-i xml-stylesheet ...?>
doc[2].target # => "xml-stylesheet"
doc[2].content # => "type=\"text/css\" href=\"sty...

WEBrick::HTTPRequest#query -> Hash (3019.0)

リクエストのクエリーあるいはクライアントがフォームへ入力した値を表すハッシュを返します。

...し multipart/form-data なフォームデータの場合には
ユーザが content-transfer-encoding ヘッダを見て適切に処理する必要があります。

ハッシュの値は正確には文字列ではなく String クラスのサブクラスである WEBrick::HTTPUtils::FormData
...
...ラスのインスタンスです。

multipart/form-data なフォームデータであってもサイズの制限なく、通常のフォームデータと
同じように扱われることに注意してください。クライアントからの入力によっては巨大な文字列が
生成さ...
...れてしまいます。

例:

h = req.query
p h['q'] #=> "ruby rails session"
p h['upfile']['content-type'] #=> "plain/text"
p h['upfile'].filename #=> "my_file.txt"
p h['upfile'] #=> "hoge hoge hoge"...