種類
- インスタンスメソッド (932)
- 特異メソッド (680)
- モジュール関数 (38)
ライブラリ
- drb (44)
-
net
/ http (198) - open-uri (85)
-
rexml
/ document (66) -
rexml
/ sax2listener (44) -
rexml
/ streamlistener (11) -
rubygems
/ format (22) -
rubygems
/ package / tar _ input (22) -
rubygems
/ remote _ fetcher (132) -
rubygems
/ security (187) -
rubygems
/ source _ index (11) -
rubygems
/ source _ info _ cache _ entry (11) -
rubygems
/ spec _ fetcher (33) -
rubygems
/ specification (11) - uri (707)
-
webrick
/ cgi (11) -
webrick
/ httpproxy (11) -
webrick
/ httprequest (22) -
webrick
/ httpresponse (11) -
webrick
/ httpserver (11)
クラス
-
DRb
:: DRbObject (11) -
DRb
:: DRbServer (22) -
Gem
:: Format (22) -
Gem
:: Package :: TarInput (22) -
Gem
:: RemoteFetcher (121) -
Gem
:: RemoteFetcher :: FetchError (11) -
Gem
:: Security :: Policy (99) -
Gem
:: Security :: Signer (33) -
Gem
:: SourceIndex (11) -
Gem
:: SourceInfoCacheEntry (11) -
Gem
:: SpecFetcher (33) -
Gem
:: Specification (11) -
Net
:: HTTP (66) -
Net
:: HTTPGenericRequest (33) -
Net
:: HTTPResponse (11) -
REXML
:: Attribute (11) -
REXML
:: Attributes (11) -
REXML
:: Element (33) -
URI
:: FTP (55) -
URI
:: Generic (294) -
URI
:: HTTP (33) -
URI
:: LDAP (88) -
URI
:: MailTo (55) -
WEBrick
:: CGI (11) -
WEBrick
:: HTTPProxyServer (11) -
WEBrick
:: HTTPRequest (22) -
WEBrick
:: HTTPResponse (11) -
WEBrick
:: HTTPServer (11)
モジュール
- DRb (11)
-
Gem
:: Security (55) - Kernel (27)
-
Net
:: HTTPHeader (88) - OpenURI (22)
-
OpenURI
:: OpenRead (33) -
REXML
:: SAX2Listener (44) -
REXML
:: Security (11) -
REXML
:: StreamListener (11) - URI (185)
キーワード
- + (11)
- - (11)
- == (11)
- [] (11)
-
add
_ namespace (22) -
add
_ trusted _ cert (11) - attribute (11)
- attributes= (11)
-
basic
_ auth (11) - body= (11)
-
body
_ stream (11) -
body
_ stream= (11) - build (110)
- build2 (22)
-
build
_ cert (11) -
build
_ self _ signed _ cert (11) -
cache
_ dir (11) -
cert
_ chain= (11) - coerce (11)
-
connection
_ for (11) - decode (7)
-
decode
_ www _ form (11) -
decode
_ www _ form _ component (11) - delete (11)
- dn= (11)
- doctype (22)
- download (11)
- encode (7)
-
encode
_ www _ form (11) -
encode
_ www _ form _ component (11) -
end
_ element (11) -
entity
_ expansion _ limit= (11) - escape (18)
- extensions= (11)
- extract (44)
- fetch (33)
-
fetch
_ path (11) -
fetch
_ size (11) -
fetch
_ spec (11) -
file
_ uri? (11) - filter= (11)
-
find
_ proxy (8) - fragment= (11)
-
from
_ file _ by _ path (11) -
from
_ io (11) - get (22)
-
get
_ attribute _ ns (11) -
get
_ fields (11) -
get
_ file _ uri _ path (11) -
get
_ print (22) -
get
_ response (11) - headers= (11)
- here? (11)
- homepage= (11)
- host= (11)
- hostname= (11)
- join (11)
-
load
_ specs (11) - merge (11)
- merge! (11)
- namespace (11)
- new (143)
- new2 (11)
-
new
_ with _ uri (11) -
normalize
_ uri (11) -
only
_ signed= (11) -
only
_ trusted= (11) - opaque= (11)
- open (63)
-
open
_ uri (22) -
open
_ uri _ or _ path (11) - parse (11)
- password= (11)
- path= (11)
-
path
_ info= (11) - port= (11)
-
post
_ form (11) -
proxy
_ basic _ auth (11) - query= (11)
-
query
_ string= (11) - read (11)
-
read
_ body (11) - refresh (11)
- regexp (22)
- registry= (11)
- request (11)
-
request
_ uri= (11) -
route
_ from (11) -
route
_ to (11) - scheme= (11)
- scope= (11)
- select (11)
- sign (11)
-
sign
_ cert (11) - split (11)
-
start
_ element (11) -
start
_ prefix _ mapping (11) -
start
_ service (11) - to= (11)
-
trusted
_ cert _ path (11) - typecode= (11)
- unescape (18)
- update (11)
- user= (11)
- userinfo= (11)
-
verify
_ chain= (11) -
verify
_ data= (11) -
verify
_ gem (11) -
verify
_ root= (11) -
verify
_ signer= (11) -
verify
_ trust _ dir (11)
検索結果
先頭5件
-
Kernel
. # URI(uri _ str) -> object (36680.0) -
与えられた URI から該当する URI::Generic のサブクラスのインスタンスを生成して 返します。scheme が指定されていない場合は、URI::Generic オブジェクトを返します。
... URI から該当する URI::Generic のサブクラスのインスタンスを生成して
返します。scheme が指定されていない場合は、URI::Generic オブジェクトを返します。
@param uri_str パースしたい URI を文字列として与えます。
@raise URI::InvalidU......RIError パースに失敗した場合に発生します。
@see URI.parse... -
URI
. join(uri _ str , *path) -> object (36521.0) -
文字列 uri_str と path ... を URI として連結して得られる URI オブジェクトを返します。
...文字列 uri_str と path ... を URI として連結して得られる
URI オブジェクトを返します。
2396 の Section 5.2 の
仕様に従って連結します。
以下と等価です
require 'uri'
URI.parse(uri_str) + path + ...
@param uri_str URI 文字列
@param path 後ろ......する文字列
@raise URI::InvalidComponentError 各要素が適合しない場合に発生します。
@raise URI::InvalidURIError パースに失敗した場合に発生します。
例:
require 'uri'
p URI.join('http://www.ruby-lang.org/', '/ja/man-1.6/')
=> #<URI::HTTP:0x2010017a URL:... -
REXML
:: Security . entity _ expansion _ limit=(val) (36406.0) -
実体参照の展開回数の上限を指定します。
...の展開回数の上限を指定します。
XML 文書(REXML::Document)ごとの展開回数がこの値を越えると
例外を発生させ、処理を中断します。
デフォルトは 10000 です。
@param val 設定する上限値(整数)
@see REXML::Document.entity_expansion_limit... -
URI
. split(url) -> [String | nil] (36346.0) -
URI を要素に分割した文字列の配列を返します。
...
URI を要素に分割した文字列の配列を返します。
各要素の種類と順番は以下のとおりです。
* scheme
* userinfo
* host
* port
* registry
* path
* opaque
* query
* fragment
@param url パースしたい URI を文字列として与えます。
@ra......ise URI::InvalidURIError パースに失敗した場合に発生します。
例:
require 'uri'
p URI.split("http://www.ruby-lang.org/")
#=> ["http", nil, "www.ruby-lang.org", nil, nil, "/", nil, nil, nil]... -
URI
. decode _ www _ form(str , enc=Encoding :: UTF _ 8) -> [[String , String]] (30836.0) -
文字列から URL-encoded form data をデコードします。
...文字列から URL-encoded form data をデコードします。
application/x-www-form-urlencoded 形式のデータをデコードし、
[key, value] という形の配列の配列を返します。
enc で指定したエンコーディングの文字列が URL エンコードされたもの......。
require 'uri'
ary = URI.decode_www_form("a=1&a=2&b=3")
p ary #=> [['a', '1'], ['a', '2'], ['b', '3']]
p ary.assoc('a').last #=> '1'
p ary.assoc('b').last #=> '3'
p ary.rassoc('a').last #=> '2'
p Hash[ary] # => {"a"=>"2", "b"=>"3"}
@param str デコ......ード対象の文字列
@param enc エンコーディング
@raise ArgumentError str のフォーマットが不正である場合に発生します
@see URI.decode_www_form_component, URI.encode_www_form... -
OpenURI
. open _ uri(name , mode = & # 39;r& # 39; , perm = nil , options = {}) -> StringIO (30638.0) -
URI である文字列 name のリソースを取得して StringIO オブジェクト として返します。
...
URI である文字列 name のリソースを取得して StringIO オブジェクト
として返します。
ブロックを与えた場合は StringIO オブジェクトを引数としてブロックを
評価します。ブロックの終了時に StringIO は close されます。nil を返......します。
require 'open-uri'
sio = OpenURI.open_uri('http://www.example.com')
p sio.last_modified
puts sio.read
OpenURI.open_uri('http://www.example.com'){|sio| sio.read }
options には Hash を与えます。理解するハッシュの
キーは以下のシンボル、
* :proxy
*......asic_authentication
* :proxy_http_basic_authentication
* :read_timeout
* :ssl_ca_cert
* :ssl_verify_mode
* :ftp_active_mode
* :redirect
です。
「:content_length_proc」と「:progress_proc」はプログレスバーに
利用されることを想定しています。
require 'open-uri'... -
URI
. open(name , mode = & # 39;r& # 39; , perm = nil , options = {}) -> StringIO | Tempfile | IO (30570.0) -
name が http:// や https://、ftp:// で始まっている文字列なら URI のリソースを 取得した上で StringIO オブジェクトまたは Tempfile オブジェクトとして返します。 返されるオブジェクトは OpenURI::Meta モジュールで extend されています。
...tp:// や https://、ftp:// で始まっている文字列なら URI のリソースを
取得した上で StringIO オブジェクトまたは Tempfile オブジェクトとして返します。
返されるオブジェクトは OpenURI::Meta モジュールで extend されています。
name......列なら URI のリソースを取得した上で StringIO オブジェクト
または Tempfile オブジェクトを引数としてブロックを評価します。後は同様です。
引数のオブジェクトは OpenURI::Meta モジュールで extend されています。
@param name オ......。
@param mode モードを文字列で与えます。Kernel.#open と同じです。
@param perm open(2) の第 3 引数のように、ファイルを生成する場合のファイルのパーミッションを
整数で指定します。Kernel.#open と同じです
@param options... -
URI
. encode(str , unsafe = URI :: UNSAFE) -> String (30560.0) -
URI 文字列をエンコードした文字列を返します。
...
URI 文字列をエンコードした文字列を返します。
このメソッドは obsolete です。
代わりに
ERB::Util.#url_encode,
CGI.escape,
URI.encode_www_form_component,
WEBrick::HTTPUtils.#escape_form,
WEBrick::HTTPUtils.#escape
などの使用を検討してください。
詳細......てください。
例:
require 'uri'
p URI.escape('http://images.google.co.jp/images?q=モナリザ&ie=EUC-JP')
#=> "http://images.google.co.jp/images?q=%A5%E2%A5%CA%A5%EA%A5%B6&ie=EUC-JP"
@param str URI を文字列として与えます。
@param unsafe URI として指定できない... -
URI
. escape(str , unsafe = URI :: UNSAFE) -> String (30560.0) -
URI 文字列をエンコードした文字列を返します。
...
URI 文字列をエンコードした文字列を返します。
このメソッドは obsolete です。
代わりに
ERB::Util.#url_encode,
CGI.escape,
URI.encode_www_form_component,
WEBrick::HTTPUtils.#escape_form,
WEBrick::HTTPUtils.#escape
などの使用を検討してください。
詳細......てください。
例:
require 'uri'
p URI.escape('http://images.google.co.jp/images?q=モナリザ&ie=EUC-JP')
#=> "http://images.google.co.jp/images?q=%A5%E2%A5%CA%A5%EA%A5%B6&ie=EUC-JP"
@param str URI を文字列として与えます。
@param unsafe URI として指定できない... -
URI
. decode _ www _ form _ component(str , enc=Encoding :: UTF _ 8) -> String (30548.0) -
URL-encoded form data の文字列の各コンポーネント をデコードした文字列を返します。
...URL-encoded form data の文字列の各コンポーネント
をデコードした文字列を返します。
通常は URI.decode_www_form を使うほうがよいでしょう。
"+" という文字は空白文字にデコードします。
enc で指定したエンコーディングの文字......て実装されています。
//emlist[][ruby]{
require 'uri'
enc = URI.encode_www_form_component('Ruby リファレンスマニュアル')
# => "Ruby+%E3%83%AA%E3%83%95%E3%82%A1%E3%83%AC%E3%83%B3%E3%82%B9%E3%83%9E%E3%83%8B%E3%83%A5%E3%82%A2%E3%83%AB"
p URI.decode_www_form_component(enc)
# => "Ru......by リファレンスマニュアル"
//}
@param str デコード対象の文字列
@param enc エンコーディング
@raise ArgumentError str のフォーマットが不正である場合に発生します
@see URI.encode_www_form_component, URI.decode_www_form... -
OpenURI
. open _ uri(name , mode = & # 39;r& # 39; , perm = nil , options = {}) {|sio| . . . } -> nil (30538.0) -
URI である文字列 name のリソースを取得して StringIO オブジェクト として返します。
...
URI である文字列 name のリソースを取得して StringIO オブジェクト
として返します。
ブロックを与えた場合は StringIO オブジェクトを引数としてブロックを
評価します。ブロックの終了時に StringIO は close されます。nil を返......します。
require 'open-uri'
sio = OpenURI.open_uri('http://www.example.com')
p sio.last_modified
puts sio.read
OpenURI.open_uri('http://www.example.com'){|sio| sio.read }
options には Hash を与えます。理解するハッシュの
キーは以下のシンボル、
* :proxy
*......asic_authentication
* :proxy_http_basic_authentication
* :read_timeout
* :ssl_ca_cert
* :ssl_verify_mode
* :ftp_active_mode
* :redirect
です。
「:content_length_proc」と「:progress_proc」はプログレスバーに
利用されることを想定しています。
require 'open-uri'...