249件ヒット
[201-249件を表示]
(0.024秒)
別のキーワード
ライブラリ
- ビルトイン (33)
- csv (24)
- kconv (12)
-
net
/ http (72) - open-uri (24)
-
rexml
/ document (60) - scanf (12)
-
webrick
/ httpresponse (12)
クラス
- Array (21)
- CSV (24)
-
REXML
:: Document (36) -
REXML
:: Instruction (24) - String (36)
-
WEBrick
:: HTTPResponse (12)
モジュール
-
Net
:: HTTPHeader (72) -
OpenURI
:: Meta (24)
キーワード
- chunked= (12)
- chunked? (12)
- content (12)
-
content
_ encoding (12) - each (12)
-
each
_ capitalized _ name (12) -
each
_ header (12) -
each
_ key (12) -
each
_ name (12) - inspect (12)
- iseuc (12)
- pack (21)
- scanf (12)
-
stand
_ alone? (12) - target (12)
- unpack (12)
- version (12)
検索結果
先頭5件
-
REXML
:: Document # stand _ alone? -> String (13.0) -
XML 宣言の standalone の値を文字列で返します。
...XML 宣言の standalone の値を文字列で返します。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<e />
EOS
doc.stand_alone? # => "yes"
//}... -
REXML
:: Document # version -> String (13.0) -
XML 宣言に含まれている XML 文書のバージョンを返します。
...XML 宣言を持たない場合はデフォルトの値
(REXML::XMLDecl.defaultで宣言されているもの)を返します。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<e />
EOS
doc.version # => "1.0"
//}... -
REXML
:: Instruction # content -> String | nil (13.0) -
XML 処理命令の内容を返します。
...XML 処理命令の内容を返します。
//emlist[][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-... -
REXML
:: Instruction # target -> String (13.0) -
XML 処理命令のターゲットを返します。
...XML 処理命令のターゲットを返します。
//emlist[][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-st... -
WEBrick
:: HTTPResponse # chunked=(flag) (13.0) -
真に設定するとクライアントに返す内容(エンティティボディ)を chunk に分けるようになります。
...ます。
require 'webrick'
include WEBrick
res = HTTPResponse.new( { :HTTPVersion => "1.1" } )
res.body = 'hoge'
res.chunked = true
print res.to_s
#=> 出力結果
HTTP/1.1 200 OK
Connection: Keep-Alive
Date: Sat, 27 Oct 2007 09:04:28 GMT
Server:
Transfer-Encoding: chunked...