ライブラリ
- ビルトイン (42)
-
cgi
/ session (12) - drb (192)
-
drb
/ extserv (12) -
drb
/ extservm (24) -
net
/ http (751) - open-uri (236)
- optparse (12)
-
rexml
/ document (180) -
rexml
/ parsers / sax2parser (60) -
rexml
/ sax2listener (48) -
rexml
/ streamlistener (24) -
rinda
/ rinda (12) -
rinda
/ tuplespace (12) - rss (12)
-
rubygems
/ dependency _ installer (24) -
rubygems
/ format (24) -
rubygems
/ package / tar _ input (24) -
rubygems
/ remote _ fetcher (168) -
rubygems
/ security (444) -
rubygems
/ server (72) -
rubygems
/ source _ index (12) -
rubygems
/ source _ info _ cache (12) -
rubygems
/ source _ info _ cache _ entry (12) -
rubygems
/ spec _ fetcher (36) -
rubygems
/ specification (24) - socket (72)
- syslog (12)
- uri (1396)
-
webrick
/ cgi (12) -
webrick
/ httpproxy (12) -
webrick
/ httprequest (108) -
webrick
/ httpresponse (24) -
webrick
/ httpserver (12) -
webrick
/ httpstatus (492) - win32ole (48)
クラス
-
CGI
:: Session (12) -
DRb
:: DRbObject (60) -
DRb
:: DRbServer (36) -
DRb
:: ExtServ (12) -
DRb
:: ExtServManager (24) -
Gem
:: DependencyInstaller (24) -
Gem
:: Format (24) -
Gem
:: Package :: TarInput (24) -
Gem
:: RemoteFetcher (144) -
Gem
:: RemoteFetcher :: FetchError (24) -
Gem
:: Security :: Policy (180) -
Gem
:: Security :: Signer (72) -
Gem
:: Server (72) -
Gem
:: SourceIndex (12) -
Gem
:: SourceInfoCacheEntry (12) -
Gem
:: SpecFetcher (36) -
Gem
:: Specification (24) -
Net
:: HTTP (132) -
Net
:: HTTPGenericRequest (96) -
Net
:: HTTPResponse (108) - Object (30)
-
REXML
:: Attribute (12) -
REXML
:: Attributes (24) -
REXML
:: Element (48) -
REXML
:: Entity (12) -
REXML
:: NotationDecl (24) -
REXML
:: Parsers :: SAX2Parser (60) -
RSS
:: NSError (12) -
Rinda
:: DRbObjectTemplate (12) - Socket (36)
-
URI
:: FTP (72) -
URI
:: Generic (648) -
URI
:: HTTP (48) -
URI
:: LDAP (156) -
URI
:: LDAPS (12) -
URI
:: MailTo (108) -
WEBrick
:: CGI (12) -
WEBrick
:: HTTPProxyServer (12) -
WEBrick
:: HTTPRequest (108) -
WEBrick
:: HTTPResponse (24) -
WEBrick
:: HTTPServer (12) - WIN32OLE (12)
-
WIN32OLE
_ EVENT (24)
モジュール
- DRb (48)
-
Gem
:: LocalRemoteOptions (12) -
Gem
:: Security (144) - Kernel (28)
-
Net
:: HTTPExceptions (12) -
Net
:: HTTPHeader (372) - OpenURI (24)
-
OpenURI
:: Meta (96) -
OpenURI
:: OpenRead (36) -
REXML
:: SAX2Listener (48) -
REXML
:: Security (48) -
REXML
:: StreamListener (24) -
Socket
:: Constants (36) -
Syslog
:: Facility (12) - URI (212)
-
WEBrick
:: HTTPStatus (480)
キーワード
- + (12)
- - (12)
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - == (24)
- AlmostNoSecurity (12)
- BadURIError (12)
- COMPONENT (12)
-
DEFAULT
_ PORT (24) - DRbBadScheme (12)
- DRbBadURI (12)
- DRbIdConv (12)
- DRbProtocol (12)
- Error (12)
- Exception (12)
- FTP (12)
- Generic (12)
- HTTP (12)
- HTTPError (12)
- HTTPRequestURITooLarge (12)
- HTTPRequestURITooLong (12)
- HTTPS (12)
- HTTPURITooLong (7)
- HighSecurity (12)
- InvalidComponentError (12)
- InvalidURIError (12)
- LDAP (12)
- LDAPS (12)
-
LOG
_ SECURITY (12) - LowSecurity (12)
- MailTo (12)
- Marshal (12)
- MediumSecurity (12)
- Meta (12)
-
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 1 . 0 (12) -
NEWS for Ruby 2
. 2 . 0 (11) -
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 2
. 6 . 0 (7) -
NEWS for Ruby 2
. 7 . 0 (6) -
NEWS for Ruby 3
. 0 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (4) - NoSecurity (12)
- OPT (12)
- OpenRead (12)
- OpenURI (12)
- OptionParser (12)
- Policies (12)
- Policy (12)
-
RC
_ ACCEPTED (12) -
RC
_ BAD _ GATEWAY (12) -
RC
_ BAD _ REQUEST (12) -
RC
_ CONFLICT (12) -
RC
_ CONTINUE (12) -
RC
_ CREATED (12) -
RC
_ EXPECTATION _ FAILED (12) -
RC
_ FORBIDDEN (12) -
RC
_ FOUND (12) -
RC
_ GATEWAY _ TIMEOUT (12) -
RC
_ GONE (12) -
RC
_ HTTP _ VERSION _ NOT _ SUPPORTED (12) -
RC
_ INTERNAL _ SERVER _ ERROR (12) -
RC
_ LENGTH _ REQUIRED (12) -
RC
_ METHOD _ NOT _ ALLOWED (12) -
RC
_ MOVED _ PERMANENTLY (12) -
RC
_ MULTIPLE _ CHOICES (12) -
RC
_ NON _ AUTHORITATIVE _ INFORMATION (12) -
RC
_ NOT _ ACCEPTABLE (12) -
RC
_ NOT _ FOUND (12) -
RC
_ NOT _ IMPLEMENTED (12) -
RC
_ NOT _ MODIFIED (12) -
RC
_ NO _ CONTENT (12) -
RC
_ OK (12) -
RC
_ PARTIAL _ CONTENT (12) -
RC
_ PAYMENT _ REQUIRED (12) -
RC
_ PRECONDITION _ FAILED (12) -
RC
_ PROXY _ AUTHENTICATION _ REQUIRED (12) -
RC
_ REQUEST _ ENTITY _ TOO _ LARGE (12) -
RC
_ REQUEST _ RANGE _ NOT _ SATISFIABLE (12) -
RC
_ REQUEST _ TIMEOUT (12) -
RC
_ REQUEST _ URI _ TOO _ LARGE (12) -
RC
_ RESET _ CONTENT (12) -
RC
_ SEE _ OTHER (12) -
RC
_ SERVICE _ UNAVAILABLE (12) -
RC
_ SWITCHING _ PROTOCOLS (12) -
RC
_ TEMPORARY _ REDIRECT (12) -
RC
_ UNAUTHORIZED (12) -
RC
_ UNSUPPORTED _ MEDIA _ TYPE (12) -
RC
_ USE _ PROXY (12) - RequestURITooLarge (12)
-
SO
_ SECURITY _ AUTHENTICATION (24) -
SO
_ SECURITY _ ENCRYPTION _ NETWORK (24) -
SO
_ SECURITY _ ENCRYPTION _ TRANSPORT (24) - Security (24)
- SecurityError (12)
- Signer (12)
- SourceInfoCache (12)
- TupleSpace (12)
- UNSAFE (12)
- URI (24)
-
WIN32OLE
_ EVENT (12) - [] (12)
- []= (12)
-
_ _ drbref (12) -
_ _ drburi (12) - absolute (12)
- absolute? (12)
-
accept
_ uri _ http (12) -
add
_ namespace (24) -
add
_ trusted _ cert (12) - attribute (12)
- attributes (12)
- attributes= (12)
-
base
_ uri (12) -
basic
_ auth (12) - body (24)
- body= (12)
-
body
_ stream (12) -
body
_ stream= (12) - build (120)
- build2 (24)
-
build
_ cert (12) -
build
_ self _ signed _ cert (12) -
cache
_ dir (12) -
cert
_ chain (12) -
cert
_ chain= (12) - charset (24)
- chunked? (12)
- code (12)
- coerce (12)
- component (24)
- connect (12)
-
connection
_ for (12) -
content
_ encoding (12) -
content
_ length (12) -
content
_ length= (12) -
content
_ range (12) -
content
_ type (24) -
content
_ type= (12) -
current
_ server (12) - decode (7)
-
decode
_ www _ form (12) -
decode
_ www _ form _ component (12) -
default
_ port (24) - delete (12)
- dn (12)
- dn= (12)
- doctype (24)
- download (12)
- drb (12)
-
drb
/ extservm (12) -
drb
/ gw (12) -
drb
/ ssl (12) -
drb
/ unix (12) - each (12)
-
each
_ capitalized _ name (12) -
each
_ header (12) -
each
_ key (12) -
each
_ name (12) -
each
_ value (12) - encode (7)
-
encode
_ www _ form (12) -
encode
_ www _ form _ component (12) -
end
_ element (12) - entity (12)
-
entity
_ expansion _ limit (12) -
entity
_ expansion _ limit= (12) -
entity
_ expansion _ text _ limit (12) -
entity
_ expansion _ text _ limit= (12) - eql? (12)
- escape (19)
- extensions (12)
- extensions= (12)
- extract (48)
- fetch (36)
-
fetch
_ path (12) -
fetch
_ size (12) -
fetch
_ spec (12) -
file
_ uri? (12) - filter (12)
- filter= (12)
-
find
_ gems _ with _ sources (12) -
find
_ proxy (12) -
find
_ spec _ by _ name _ and _ version (12) -
form
_ data= (12) - fragment (12)
- fragment= (12)
-
from
_ file _ by _ path (12) -
from
_ io (12) - get (24)
-
get
_ attribute _ ns (12) -
get
_ fields (12) -
get
_ file _ uri _ path (12) -
get
_ print (24) -
get
_ proxy _ from _ env (12) -
get
_ response (24) - handler= (12)
- headers (12)
- headers= (12)
- here? (24)
- hierarchical? (12)
- homepage (12)
- homepage= (12)
- host (24)
- host= (12)
- hostname (12)
- hostname= (12)
-
http
_ version (12) - join (12)
- key (12)
- key= (12)
- key? (12)
-
last
_ modified (12) -
latest
_ specs (12) - listen (60)
-
load
_ specs (12) -
main
_ type (12) - merge (12)
- merge! (12)
- method (24)
- msg (12)
- namespace (24)
- namespaces (12)
-
net
/ http (12) - new (216)
- new2 (12)
-
new
_ with _ uri (12) - normalize (12)
- normalize! (12)
-
normalize
_ uri (12) - notationdecl (12)
-
only
_ signed (12) -
only
_ signed= (12) -
only
_ trusted (12) -
only
_ trusted= (12) - opaque (12)
- opaque= (12)
- open (68)
- open-uri (12)
-
open
_ uri (24) -
open
_ uri _ or _ path (12) -
optparse
/ uri (12) - parse (12)
- parser (12)
- password (12)
- password= (12)
- path (36)
- path= (12)
-
path
_ info (12) -
path
_ info= (12) - port (12)
- port= (12)
-
post
_ form (12) -
proxy
_ basic _ auth (12) -
proxy
_ uri (12) - query (12)
- query= (12)
-
query
_ string (12) -
query
_ string= (12) - quick (12)
- range (12)
-
range
_ length (12) - read (12)
-
read
_ body (24) - ref (12)
- refresh (12)
- regexp (24)
- registry (12)
- registry= (12)
- relative? (12)
- request (12)
-
request
_ body _ permitted? (12) -
request
_ uri (36) -
request
_ uri= (12) - response (12)
-
response
_ body _ permitted? (12) -
rexml
/ parsers / pullparser (12) -
rexml
/ parsers / sax2parser (12) -
rexml
/ parsers / ultralightparser (12) -
rinda
/ rinda (12) - root (12)
-
route
_ from (12) -
route
_ to (12) -
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 2 feature (12) -
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 8 . 4 feature (12) - rubygems (12)
-
rubygems
/ commands / mirror _ command (12) -
rubygems
/ commands / sources _ command (12) -
rubygems
/ security (12) - scheme (12)
- scheme= (12)
- scope (12)
- scope= (12)
- select (12)
-
set
_ content _ type (12) -
set
_ form _ data (12) - sign (12)
-
sign
_ cert (12) - specs (12)
- split (12)
- ssl? (12)
- start (24)
-
start
_ element (12) -
start
_ prefix _ mapping (12) -
start
_ service (12) - status (12)
-
sub
_ type (12) - system (12)
- then (14)
- to (12)
- to= (12)
-
to
_ mailtext (12) -
to
_ rfc822text (12) -
to
_ s (12) -
trusted
_ cert _ path (12) -
type
_ params (12) - typecode (12)
- typecode= (12)
- unescape (19)
-
unparsed
_ uri (12) - update (12)
- uri= (12)
-
use
_ registry (12) - user (12)
- user= (12)
- userinfo (12)
- userinfo= (12)
- value (12)
-
verify
_ chain (12) -
verify
_ chain= (12) -
verify
_ data (12) -
verify
_ data= (12) -
verify
_ gem (12) -
verify
_ root (12) -
verify
_ root= (12) -
verify
_ signer (12) -
verify
_ signer= (12) -
verify
_ trust _ dir (12) - yaml (12)
-
yield
_ self (16)
検索結果
先頭5件
-
URI
. regexp(schemes) -> Regexp (17046.0) -
URIにマッチする正規表現を返します。
...
URIにマッチする正規表現を返します。
schemes を与えた場合は、そのスキームの URI にのみマッチする
正規表現を返します。
いずれの場合も返り値の正規表現は不定数の正規表現グループ
(括弧) を含みます。この括弧の数......あるので、それに依存したコードを書くべきでは
ありません。
また、有効なURIではない文字列(たとえば"http://") にも
マッチするため、有効なURIかどうかは必要に応じて別途
検査してください。
このメソッドは Ruby 2.2 か......ら obsolete です。
@param schemes マッチさせたいスキームを、文字列の配列として与えます。
例:
require 'uri'
p URI.regexp =~ "http://www.ruby-lang.org/" #=> 0... -
URI
. unescape(str) -> String (17046.0) -
URI 文字列をデコードした文字列を返します。
...
URI 文字列をデコードした文字列を返します。
このメソッドは obsolete です。
代わりに
CGI.unescape,
URI.decode_www_form,
URI.decode_www_form_component
などの使用を検討してください。
例:
require 'uri'
puts URI.unescape('http://images.google.co.jp/......images?q=%A5%E2%A5%CA%A5%EA%A5%B6&ie=EUC-JP')
#=> "http://images.google.co.jp/images?q=モナリザ&ie=EUC-JP"
@param str URI を文字列として与えます。... -
URI
. encode _ www _ form(enum , enc=nil) -> String (17042.0) -
enum から URL-encoded form data を生成します。
...uire 'uri'
URI.encode_www_form([["a", "1"], ["b", "2"], ["c", "x yz"]])
# => "a=1&b=2&c=x+yz"
実際には、each のブロック呼び出しで [key, value] の形のデータを渡すものであれば
何でも渡すことができます(例えば Hash など)。
require 'uri'
URI.encod......い場合は multipart/form-data をつかうべきで
このメソッドを使うべきではありません。
このメソッドは内部的に
URI.encode_www_form_component
を使っています。
このメソッドは
https://url.spec.whatwg.org/#concept-urlencoded-serializer
にもとづい......されています。
@param enum エンコードするデータ列([key, value] という形のデータの列)
@param enc 指定された場合、パーセントエンコーディングする前に、このエンコーディングに変換
@see URI.encode_www_form_component, URI.decode_www_form... -
URI
. split(url) -> [String | nil] (17040.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 _ component(str , enc=Encoding :: UTF _ 8) -> String (17036.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)
# => "Ruby リファ......レンスマニュアル"
//}
@param str デコード対象の文字列
@param enc エンコーディング
@raise ArgumentError str のフォーマットが不正である場合に発生します
@see URI.encode_www_form_component, URI.decode_www_form... -
URI
. encode _ www _ form _ component(str , enc=nil) -> String (17030.0) -
文字列を URL-encoded form data の1コンポーネント としてエンコードした文字列を返します。
...文字列を URL-encoded form data の1コンポーネント
としてエンコードした文字列を返します。
通常は URI.encode_www_form を使うほうがよいでしょう。
このメソッドでは *, -, ., 0-9, A-Z, _, a-z, は変換せず、
空白は + に変換し、その他....../www.w3.org/TR/2013/CR-html5-20130806/forms.html#url-encoded-form-data
にもとづいて実装されています。
//emlist[][ruby]{
require 'uri'
p 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%E......3%83%8B%E3%83%A5%E3%82%A2%E3%83%AB"
//}
@param str エンコードする文字列
@param enc 指定された場合、パーセントエンコーディングする前に、strをこのエンコーディングに変換
@see URI.decode_www_form_component, URI.encode_www_form... -
URI
. decode _ www _ form(str , enc=Encoding :: UTF _ 8) -> [[String , String]] (17024.0) -
文字列から URL-encoded form data をデコードします。
...されています。
そのため「&」区切りのみに対応していて、「;」区切りには対応していません。
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 Hash[ary] #=> {"a"=>"2", "b"=>"3"}
@param str デコード対象の文字列
@param enc エンコーディング
@raise ArgumentError str のフォーマットが不正である場合に発生します
@see URI.decode_www_form_component, URI.encode_www_form... -
URI
:: BadURIError (17016.0) -
URI として正しいが、使い方が悪いときに発生します。
...URI として正しいが、使い方が悪いときに発生します。... -
URI
:: InvalidURIError (17016.0) -
不正な URI を指定したときに発生します。
...不正な URI を指定したときに発生します。... -
URI
:: UNSAFE -> Regexp (17016.0) -
URIとして指定できない文字にマッチする正規表現 /[^-_.!~*'()a-zA-Z\d;\/?:@&=+$,\[\]]/n です。
...URIとして指定できない文字にマッチする正規表現
/[^-_.!~*'()a-zA-Z\d;\/?:@&=+$,\[\]]/n
です。...