48件ヒット
[1-48件を表示]
(0.082秒)
ライブラリ
-
net
/ http (24) -
rexml
/ document (24)
クラス
-
Net
:: HTTP (24) -
REXML
:: Instruction (24)
検索結果
先頭4件
-
REXML
:: Instruction # target -> String (18114.0) -
XML 処理命令のターゲットを返します。
...t[][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=\"style... -
Net
:: HTTP # post(path , data , header = nil , dest = nil) -> Net :: HTTPResponse (31.0) -
サーバ上の path にあるエンティティに対し文字列 data を POST で送ります。
...# net/http version 1.1
response, body = http.post('/cgi-bin/search.rb', 'query=subject&target=ruby')
# version 1.2
response = http.post('/cgi-bin/search.rb', 'query=subject&target=ruby')
# using block
File.open('save.html', 'w') {|f|
http.post('/cgi-bin/search.rb', 'query=subject&target=ruby') d... -
Net
:: HTTP # post(path , data , header = nil , dest = nil) {|body _ segment| . . . . } -> Net :: HTTPResponse (31.0) -
サーバ上の path にあるエンティティに対し文字列 data を POST で送ります。
...# net/http version 1.1
response, body = http.post('/cgi-bin/search.rb', 'query=subject&target=ruby')
# version 1.2
response = http.post('/cgi-bin/search.rb', 'query=subject&target=ruby')
# using block
File.open('save.html', 'w') {|f|
http.post('/cgi-bin/search.rb', 'query=subject&target=ruby') d... -
REXML
:: Instruction # content -> String | nil (19.0) -
XML 処理命令の内容を返します。
...ment.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]...