720件ヒット
[1-100件を表示]
(0.103秒)
ライブラリ
- ビルトイン (12)
-
cgi
/ html (48) - delegate (24)
- getoptlong (24)
- mkmf (12)
-
net
/ ftp (24) -
net
/ http (192) -
rake
/ gempackagetask (12) -
rake
/ packagetask (12) -
rexml
/ document (228) -
rexml
/ sax2listener (12) -
rubygems
/ commands / unpack _ command (12) -
rubygems
/ remote _ fetcher (12) -
webrick
/ httputils (96)
クラス
- Delegator (12)
- Exception (12)
-
Gem
:: Commands :: UnpackCommand (12) -
Gem
:: RemoteFetcher (12) - GetoptLong (24)
-
Net
:: FTP (24) -
Net
:: HTTP (156) -
Net
:: HTTPGenericRequest (12) -
REXML
:: Attribute (36) -
REXML
:: Attributes (144) -
REXML
:: Element (48) -
Rake
:: GemPackageTask (12) -
Rake
:: PackageTask (12) - SimpleDelegator (12)
-
WEBrick
:: HTTPUtils :: FormData (96)
モジュール
-
CGI
:: HtmlExtension (48) - Kernel (12)
-
Net
:: HTTPHeader (24) -
REXML
:: SAX2Listener (12)
キーワード
- [] (24)
- []= (12)
-
_ _ getobj _ _ (24) - attribute (12)
-
backtrace
_ locations (12) -
create
_ makefile (12) - delete (12)
-
delete
_ all (12) - each (12)
-
each
_ attribute (12) -
each
_ data (12) - filename (12)
- filename= (12)
- form (48)
-
form
_ data= (12) -
gem
_ spec (12) - get2 (24)
-
get
_ attribute (12) -
get
_ attribute _ ns (12) -
get
_ elements (12) -
get
_ file _ uri _ path (12) -
get
_ path (12) -
get
_ text (12) - getbinaryfile (12)
- head2 (24)
- length (12)
- list (12)
- name (12)
- name= (12)
- namespace (12)
- namespaces (12)
-
package
_ dir _ path (12) - path (12)
- prefix (12)
- prefixes (12)
-
processing
_ instruction (12) - request (24)
-
request
_ get (24) -
request
_ head (24) -
send
_ request (12) -
set
_ form _ data (12) - size (12)
- terminate (12)
- terminated? (12)
- text (12)
-
to
_ ary (12) -
to
_ string (12)
検索結果
先頭5件
- Net
:: HTTP # get(path , header = nil , dest = nil) -> Net :: HTTPResponse - Net
:: HTTP # get(path , header = nil , dest = nil) {|body _ segment| . . . . } -> Net :: HTTPResponse - Net
:: FTP # get(remotefile , localfile = File . basename(remotefile) , blocksize = DEFAULT _ BLOCKSIZE) { |data| . . . . } -> nil - REXML
:: Attributes # get _ attribute _ ns(namespace , name) -> REXML :: Attribute | nil - REXML
:: Attributes # get _ attribute(name) -> Attribute | nil
-
Net
:: HTTP # get(path , header = nil , dest = nil) -> Net :: HTTPResponse (18233.0) -
サーバ上の path にあるエンティティを取得し、 Net::HTTPResponse のインスタンスとして返します。
...サーバ上の path にあるエンティティを取得し、
Net::HTTPResponse のインスタンスとして返します。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*', ... } という......さい。
dest を指定した場合には
ボディを少しずつ取得して順次
「dest << ボディの断片」を実行します。
@param path 取得するエンティティのパスを文字列で指定します。
@param header リクエストの HTTP ヘッダをハッシュで指定し......version 1.1
response, body = http.get( '/index.html' )
# net/http version 1.2
response = http.get('/index.html')
# compatible in both version
response , = http.get('/index.html')
response.body
# compatible, using block
File.open('save.txt', 'w') {|f|
http.get('/~foo/', nil) do |str|
f.writ... -
Net
:: HTTP # get(path , header = nil , dest = nil) {|body _ segment| . . . . } -> Net :: HTTPResponse (18233.0) -
サーバ上の path にあるエンティティを取得し、 Net::HTTPResponse のインスタンスとして返します。
...サーバ上の path にあるエンティティを取得し、
Net::HTTPResponse のインスタンスとして返します。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*', ... } という......さい。
dest を指定した場合には
ボディを少しずつ取得して順次
「dest << ボディの断片」を実行します。
@param path 取得するエンティティのパスを文字列で指定します。
@param header リクエストの HTTP ヘッダをハッシュで指定し......version 1.1
response, body = http.get( '/index.html' )
# net/http version 1.2
response = http.get('/index.html')
# compatible in both version
response , = http.get('/index.html')
response.body
# compatible, using block
File.open('save.txt', 'w') {|f|
http.get('/~foo/', nil) do |str|
f.writ... -
Net
:: FTP # get(remotefile , localfile = File . basename(remotefile) , blocksize = DEFAULT _ BLOCKSIZE) { |data| . . . . } -> nil (18203.0) -
サーバ上のファイルを取得します。
...サーバ上のファイルを取得します。
Net::FTP#binary の値に従って
Net::FTP#getbinaryfile もしくは
Net::FTP#gettextfile を呼びだします。
binary が偽のとき、つまりテキストモードの
ときには blocksize は無視されます。
@param remotefile 取... -
REXML
:: Attributes # get _ attribute _ ns(namespace , name) -> REXML :: Attribute | nil (15332.0) -
namespace と name で特定される属性を返します。
...o:att='1' bar:att='2' att='<'/>
</root>
EOS
a = doc.get_elements("/root/a").first
a.attributes.get_attribute_ns("", "att") # => att='<'
a.attributes.get_attribute_ns("http://example.org/foo", "att") # => foo:att='1'
a.attributes.get_attribute_ns("http://example.org/baz", "att") # => nil
a.att......ributes.get_attribute_ns("http://example.org/foo", "attt") # => nil
//}... -
REXML
:: Attributes # get _ attribute(name) -> Attribute | nil (15320.0) -
name という名前の属性を取得します。
...Attributes#[]
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<-EOS)
<root xmlns:foo="http://example.org/foo"
xmlns:bar="http://example.org/bar">
<a foo:att='1' bar:att='2' att='<'/>
</root>
EOS
a = doc.get_elements("/root/a").first
a.attributes.get_attribute("at......t") # => att='<'
a.attributes.get_attribute("foo:att") # => foo:att='1'
//}... -
Gem
:: Commands :: UnpackCommand # get _ path(gemname , version _ req) -> String | nil (12202.0) -
引数で指定された条件にマッチする Gem パッケージを保存しているパスを返します。
引数で指定された条件にマッチする Gem パッケージを保存しているパスを返します。
@param gemname Gem パッケージの名前を指定します。
@param version_req バージョンの満たすべき条件を文字列で指定します。 -
Gem
:: RemoteFetcher # get _ file _ uri _ path(uri) -> String (12202.0) -
与えられた URI から "file://" を取り除いた文字列を返します。
与えられた URI から "file://" を取り除いた文字列を返します。
@param uri URI を表す文字列を指定します。 -
REXML
:: Attributes # each _ attribute {|attribute| . . . } -> () (9207.0) -
各属性に対しブロックを呼び出します。
...は REXML::Attribute オブジェクトで渡されます。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<root xmlns:foo="http://example.org/foo"
xmlns:bar="http://example.org/bar">
<a foo:att='1' bar:att='2' att='<'/>
</root>
EOS
a = doc.get_elements("/r......oot/a").first
a.attributes.each_attribute do |attr|
p [attr.namespace, attr.name, attr.value]
end
# => ["http://example.org/foo", "att", "1"]
# => ["http://example.org/bar", "att", "2"]
# => ["", "att", "<"]
//}... -
WEBrick
:: HTTPUtils :: FormData # each _ data {|s| . . . } (9107.0) -
自身が表す各フォームデータを引数として、与えられたブロックを実行します。
...ムデータを引数として、与えられたブロックを実行します。
例:
require "webrick/cgi"
class MyCGI < WEBrick::CGI
def do_GET(req, res)
req.query['q'].each_data{|s|
p s
}
#=> "val1"
"val2"
"val3"
end
end
MyCGI.new.start()...