るりまサーチ

最速Rubyリファレンスマニュアル検索!
216件ヒット [1-100件を表示] (0.022秒)
トップページ > クエリ:URI::HTTP[x]

別のキーワード

  1. uri build
  2. uri extract
  3. uri new
  4. open-uri open
  5. uri regexp

ライブラリ

クラス

モジュール

キーワード

検索結果

<< 1 2 3 > >>

URI::HTTP (23000.0)

HTTP URI を表すクラスです。

HTTP URI を表すクラスです。

URI::HTTP.build(ary) -> URI::HTTP (21130.0)

引数で与えられた URI 構成要素から URI::HTTP オブジェクトを生成します。 引数の正当性を検査します。

...引数で与えられた URI 構成要素から URI::HTTP オブジェクトを生成します。
引数の正当性を検査します。

@param ary 構成要素を表す配列を与えます。要素は次の順です。
//emlist{
[userinfo, host, port, path, query, fragment]
//}
@param has...
...ずれかです。

@raise URI::InvalidComponentError 各要素が適合しない場合に発生します。

例:
require 'uri'
newuri = URI::HTTP.build({:host => 'www.example.com', :path => '/foo/bar'})
newuri = URI::HTTP.build([nil, "www.example.com", nil, "/path", "query", 'fragment'])...

URI::HTTP.build(hash) -> URI::HTTP (21130.0)

引数で与えられた URI 構成要素から URI::HTTP オブジェクトを生成します。 引数の正当性を検査します。

...引数で与えられた URI 構成要素から URI::HTTP オブジェクトを生成します。
引数の正当性を検査します。

@param ary 構成要素を表す配列を与えます。要素は次の順です。
//emlist{
[userinfo, host, port, path, query, fragment]
//}
@param has...
...ずれかです。

@raise URI::InvalidComponentError 各要素が適合しない場合に発生します。

例:
require 'uri'
newuri = URI::HTTP.build({:host => 'www.example.com', :path => '/foo/bar'})
newuri = URI::HTTP.build([nil, "www.example.com", nil, "/path", "query", 'fragment'])...

URI::HTTP.new(scheme, userinfo, host, port, registry, path, opaque, query, fragment, arg_check = false) -> URI::HTTP (21117.0)

汎用的な構成要素から URI::HTTP オブジェクトを生成します。build と異なり、デフォルトでは引数の正当性を検査しません。

...汎用的な構成要素から URI::HTTP オブジェクトを生成します。build
と異なり、デフォルトでは引数の正当性を検査しません。

@param scheme 構成要素を表す文字列を与えます。

@param userinfo 構成要素を表す文字列を与えます。

@pa...

URI::HTTP#request_uri -> String (21000.0)

自身の「path + '?' + query」を文字列で返します。 query が nil である場合は、自身の path を返します。

自身の「path + '?' + query」を文字列で返します。
query が nil である場合は、自身の path を返します。

path が空である場合には、path は「'/'」であるとします。

例:
require 'uri'
u = URI.parse("http://example.com/search?q=xxx")
p u.request_uri #=> "/search?q=xxx"

絞り込み条件を変える

OpenURI::HTTPError (3000.0)

URI のスキームが http または https で、リソースの取得に失敗したときに発生します。

URI のスキームが http または https で、リソースの取得に失敗したときに発生します。

URI::HTTPS (3000.0)

HTTPS URI を表すクラスです。

HTTPS URI を表すクラスです。

URI::Generic#+(rel) -> URI::Generic (36.0)

自身と与えられたパス rel を連結した新しい URI オブジェクトを生成して返します。

...ple.com/') + '/foo/bar.html'
#=> #<URI::HTTP:0x201001c0 URL:http://example.com/foo/bar.html>
URI('http://a/b/c/d;p?q').merge('?y') #=> #<URI::HTTP:0xb7ca2e2c URL:http://a/b/c/d;p?y>
URI('http://a/b/c/d;p?q').merge('/./g') #=> #<URI::HTTP:0xb7ca2738 URL:http://a/g>
URI('ht...
...tp://a/b/c/d;p?q').merge('/../g') #=> #<URI::HTTP:0xb7ca2008 URL:http://a/g>
URI('http://a/b/c/d;p?q').merge('../../../g') #=> #<URI::HTTP:0xb7ca1888 URL:http://a/g>
URI('http://a/b/c/d;p?q').merge('../../../../g') #=> #<URI::HTTP:0xb7ca10a4 URL:http://a/g>...

URI::Generic#merge(rel) -> URI::Generic (36.0)

自身と与えられたパス rel を連結した新しい URI オブジェクトを生成して返します。

...ple.com/') + '/foo/bar.html'
#=> #<URI::HTTP:0x201001c0 URL:http://example.com/foo/bar.html>
URI('http://a/b/c/d;p?q').merge('?y') #=> #<URI::HTTP:0xb7ca2e2c URL:http://a/b/c/d;p?y>
URI('http://a/b/c/d;p?q').merge('/./g') #=> #<URI::HTTP:0xb7ca2738 URL:http://a/g>
URI('ht...
...tp://a/b/c/d;p?q').merge('/../g') #=> #<URI::HTTP:0xb7ca2008 URL:http://a/g>
URI('http://a/b/c/d;p?q').merge('../../../g') #=> #<URI::HTTP:0xb7ca1888 URL:http://a/g>
URI('http://a/b/c/d;p?q').merge('../../../../g') #=> #<URI::HTTP:0xb7ca10a4 URL:http://a/g>...
<< 1 2 3 > >>