ライブラリ
- ビルトイン (14)
-
cgi
/ session (11) - drb (110)
-
drb
/ extserv (11) -
drb
/ extservm (11) -
net
/ http (484) - open-uri (173)
- optparse (11)
-
rexml
/ document (132) -
rexml
/ parsers / sax2parser (55) -
rexml
/ sax2listener (44) -
rexml
/ streamlistener (22) -
rubygems
/ dependency _ installer (22) -
rubygems
/ format (22) -
rubygems
/ remote _ fetcher (154) -
rubygems
/ security (253) -
rubygems
/ server (11) -
rubygems
/ source _ index (11) -
rubygems
/ source _ info _ cache _ entry (11) -
rubygems
/ spec _ fetcher (33) -
rubygems
/ specification (11) - socket (66)
- syslog (11)
- uri (952)
-
webrick
/ cgi (11) -
webrick
/ httpproxy (11) -
webrick
/ httprequest (77) -
webrick
/ httpresponse (11) -
webrick
/ httpserver (11) -
webrick
/ httpstatus (11) - win32ole (44)
クラス
-
CGI
:: Session (11) -
DRb
:: DRbObject (33) -
DRb
:: DRbServer (33) -
DRb
:: ExtServ (11) -
DRb
:: ExtServManager (11) -
Gem
:: DependencyInstaller (22) -
Gem
:: Format (22) -
Gem
:: RemoteFetcher (132) -
Gem
:: RemoteFetcher :: FetchError (22) -
Gem
:: Security :: Policy (99) -
Gem
:: Security :: Signer (33) -
Gem
:: Server (11) -
Gem
:: SourceIndex (11) -
Gem
:: SourceInfoCacheEntry (11) -
Gem
:: SpecFetcher (33) -
Gem
:: Specification (11) -
Net
:: HTTP (121) -
Net
:: HTTPGenericRequest (77) -
Net
:: HTTPResponse (88) - Object (14)
-
REXML
:: Attribute (11) -
REXML
:: Attributes (22) -
REXML
:: Element (33) -
REXML
:: Entity (11) -
REXML
:: NotationDecl (22) -
REXML
:: Parsers :: SAX2Parser (55) - Socket (33)
-
URI
:: FTP (55) -
URI
:: Generic (473) -
URI
:: HTTP (44) -
URI
:: LDAP (88) -
URI
:: LDAPS (11) -
URI
:: MailTo (88) -
WEBrick
:: CGI (11) -
WEBrick
:: HTTPProxyServer (11) -
WEBrick
:: HTTPRequest (77) -
WEBrick
:: HTTPResponse (11) -
WEBrick
:: HTTPServer (11) - WIN32OLE (11)
-
WIN32OLE
_ EVENT (22)
モジュール
- DRb (33)
-
Gem
:: Security (121) - Kernel (27)
-
Net
:: HTTPExceptions (11) -
Net
:: HTTPHeader (187) - OpenURI (22)
-
OpenURI
:: Meta (88) -
OpenURI
:: OpenRead (33) -
REXML
:: SAX2Listener (44) -
REXML
:: Security (33) -
REXML
:: StreamListener (22) -
Socket
:: Constants (33) -
Syslog
:: Facility (11) - URI (196)
キーワード
- + (11)
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - == (11)
- AlmostNoSecurity (11)
- COMPONENT (11)
-
DEFAULT
_ PORT (22) - DRbIdConv (11)
- HighSecurity (11)
-
LOG
_ SECURITY (11) - LowSecurity (11)
- MediumSecurity (11)
-
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 1 . 0 (11) -
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 0 . 0 (4) - NoSecurity (11)
- OPT (11)
- OptionParser (11)
- Policies (11)
- RequestURITooLarge (11)
-
SO
_ SECURITY _ AUTHENTICATION (22) -
SO
_ SECURITY _ ENCRYPTION _ NETWORK (22) -
SO
_ SECURITY _ ENCRYPTION _ TRANSPORT (22) - UNSAFE (11)
-
WIN32OLE
_ EVENT (11) - [] (11)
-
_ _ drbref (11) -
_ _ drburi (11) - absolute (11)
- absolute? (11)
-
add
_ namespace (11) -
add
_ trusted _ cert (11) - attribute (11)
- attributes (11)
-
base
_ uri (11) -
basic
_ auth (11) - body (22)
-
body
_ stream (11) -
body
_ stream= (11) - build (110)
- build2 (22)
-
build
_ cert (11) -
build
_ self _ signed _ cert (11) -
cache
_ dir (11) -
cert
_ chain (11) - charset (22)
- code (11)
- coerce (11)
- component (22)
- connect (11)
-
connection
_ for (11) -
content
_ encoding (11) -
content
_ length (11) -
content
_ range (11) -
content
_ type (22) - decode (7)
-
decode
_ www _ form (11) -
decode
_ www _ form _ component (11) -
default
_ port (22) - delete (11)
- dn (11)
- doctype (22)
- download (11)
-
each
_ capitalized _ name (11) - encode (7)
-
encode
_ www _ form (11) -
encode
_ www _ form _ component (11) -
end
_ element (11) - entity (11)
-
entity
_ expansion _ limit (11) -
entity
_ expansion _ text _ limit (11) -
entity
_ expansion _ text _ 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
_ gems _ with _ sources (11) -
find
_ proxy (11) -
find
_ spec _ by _ name _ and _ version (11) - 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
_ proxy _ from _ env (11) -
get
_ response (22) - handler= (11)
- headers (11)
- here? (22)
- hierarchical? (11)
- homepage (11)
- host (22)
- hostname (11)
-
http
_ version (11) - join (11)
- key (11)
-
last
_ modified (11) - listen (55)
-
load
_ specs (11) -
main
_ type (11) - merge (11)
- merge! (11)
- method (22)
- msg (11)
- namespace (22)
- namespaces (11)
- new (176)
- new2 (11)
-
new
_ with _ uri (11) - normalize (11)
- normalize! (11)
-
normalize
_ uri (11) - notationdecl (11)
-
only
_ signed (11) -
only
_ trusted (11) - opaque (11)
- open (52)
- open-uri (11)
-
open
_ uri (22) -
open
_ uri _ or _ path (11) -
optparse
/ uri (11) - parse (11)
- parser (11)
- password (11)
- path (33)
-
path
_ info (11) - port (11)
-
post
_ form (11) -
proxy
_ basic _ auth (11) -
proxy
_ uri (11) - query (11)
-
query
_ string (11) - quick (11)
- range (11)
-
range
_ length (11) - read (11)
-
read
_ body (11) - ref (11)
- refresh (11)
- regexp (22)
- registry (11)
- relative? (11)
- request (11)
-
request
_ body _ permitted? (11) -
request
_ uri (33) - response (11)
-
response
_ body _ permitted? (11) -
rexml
/ parsers / ultralightparser (11) -
route
_ from (11) -
route
_ to (11) -
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 2 feature (11) -
ruby 1
. 8 . 3 feature (11) -
ruby 1
. 8 . 4 feature (11) -
rubygems
/ commands / mirror _ command (11) -
rubygems
/ security (11) - scheme (11)
- scope (11)
- select (11)
-
sign
_ cert (11) - split (11)
- ssl? (11)
- start (22)
-
start
_ element (11) -
start
_ prefix _ mapping (11) -
start
_ service (11) - status (11)
-
sub
_ type (11) - system (11)
- to (11)
- to= (11)
-
to
_ mailtext (11) -
to
_ rfc822text (11) -
to
_ s (11) -
trusted
_ cert _ path (11) - typecode (11)
- unescape (18)
-
unparsed
_ uri (11) - update (11)
- uri (44)
-
use
_ registry (11) - user (11)
- userinfo (11)
- userinfo= (11)
- value (11)
-
verify
_ chain (11) -
verify
_ data (11) -
verify
_ gem (11) -
verify
_ root (11) -
verify
_ signer (11) -
yield
_ self (14)
検索結果
先頭5件
-
URI
. join(uri _ str , *path) -> object (27433.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:http://www.ruby-la......ng.org/ja/man-1.6/>... -
URI
. split(url) -> [String | nil] (27252.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]... -
Kernel
. # URI(uri _ str) -> object (24474.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
. decode _ www _ form(str , enc=Encoding :: UTF _ 8) -> [[String , String]] (24470.0) -
文字列から URL-encoded form data をデコードします。
...文字列から URL-encoded form data をデコードします。
application/x-www-form-urlencoded 形式のデータをデコードし、
[key, value] という形の配列の配列を返します。
enc で指定したエンコーディングの文字列が URL エンコードされたもの......ソッドは
https://url.spec.whatwg.org/#concept-urlencoded-parser
にもとづいて実装されています。
そのため「&」区切りのみに対応していて、「;」区切りには対応していません。
require 'uri'
ary = URI.decode_www_form("a=1&a=2&b=3")
p ary......assoc('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... -
URI
. parse(uri _ str) -> object (24439.0) -
与えられた URI から該当する URI::Generic のサブクラスのインスタンスを生成して 返します。scheme が指定されていない場合は、URI::Generic オブジェクトを返します。
... URI から該当する URI::Generic のサブクラスのインスタンスを生成して
返します。scheme が指定されていない場合は、URI::Generic オブジェクトを返します。
@param uri_str パースしたい URI を文字列として与えます。
@raise URI::InvalidC......@raise URI::InvalidURIError パースに失敗した場合に発生します。
例:
require 'uri'
p uri = URI.parse("http://www.ruby-lang.org/")
# => #<URI::HTTP:0x201002a6 URL:http://www.ruby-lang.org/>
p uri.scheme # => "http"
p uri.host # => "www.ruby-lang.org"
p uri.port......# => 80
p uri.path # => "/"... -
URI
. extract(str) {|uri _ str| . . . } -> nil (24388.0) -
文字列 str に対してパターンマッチングを試み、 絶対URIにマッチした部分文字列からなる配列として返します。 抽出する URI がなければ空の配列を返します。
...文字列 str に対してパターンマッチングを試み、
絶対URIにマッチした部分文字列からなる配列として返します。
抽出する URI がなければ空の配列を返します。
第2引数に文字列の配列 schemes が与えられた場合は
そのスキー......けを検索します。
ブロックが与えられた場合は String#scan と同様で、
マッチした部分がみつかるたびに uri_str に
その部分を代入してブロックを評価します。
このときは nil を返します。
このメソッドは Ruby 2.2 から obsolete......対象としたいスキームを、文字列の配列として与えます。
例:
require 'uri'
str = "
http://www.ruby-lang.org/
http://www.ruby-lang.org/man-1.6/
"
p URI.extract(str, ["http"])
=> ["http://www.ruby-lang.org/", "http://www.ruby-lang.org/man-1.6/"]... -
URI
. extract(str , schemes) {|uri _ str| . . . } -> nil (24388.0) -
文字列 str に対してパターンマッチングを試み、 絶対URIにマッチした部分文字列からなる配列として返します。 抽出する URI がなければ空の配列を返します。
...文字列 str に対してパターンマッチングを試み、
絶対URIにマッチした部分文字列からなる配列として返します。
抽出する URI がなければ空の配列を返します。
第2引数に文字列の配列 schemes が与えられた場合は
そのスキー......けを検索します。
ブロックが与えられた場合は String#scan と同様で、
マッチした部分がみつかるたびに uri_str に
その部分を代入してブロックを評価します。
このときは nil を返します。
このメソッドは Ruby 2.2 から obsolete......対象としたいスキームを、文字列の配列として与えます。
例:
require 'uri'
str = "
http://www.ruby-lang.org/
http://www.ruby-lang.org/man-1.6/
"
p URI.extract(str, ["http"])
=> ["http://www.ruby-lang.org/", "http://www.ruby-lang.org/man-1.6/"]... -
URI
. decode _ www _ form _ component(str , enc=Encoding :: UTF _ 8) -> String (24370.0) -
URL-encoded form data の文字列の各コンポーネント をデコードした文字列を返します。
...URL-encoded form data の文字列の各コンポーネント
をデコードした文字列を返します。
通常は URI.decode_www_form を使うほうがよいでしょう。
"+" という文字は空白文字にデコードします。
enc で指定したエンコーディングの文字......ディングを付加します。
このメソッドは
https://www.w3.org/TR/html5/sec-forms.html#urlencoded-form-data
にもとづいて実装されています。
//emlist[][ruby]{
require 'uri'
enc = URI.encode_www_form_component('Ruby リファレンスマニュアル')
# => "Ruby+%E3%83%AA%......B"
p URI.decode_www_form_component(enc)
# => "Ruby リファレンスマニュアル"
//}
@param str デコード対象の文字列
@param enc エンコーディング
@raise ArgumentError str のフォーマットが不正である場合に発生します
@see URI.encode_www_form_component, URI.de... -
URI
. encode(str , unsafe = URI :: UNSAFE) -> String (24366.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 (24366.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 として指定できない...