るりまサーチ

最速Rubyリファレンスマニュアル検索!
192件ヒット [1-100件を表示] (0.078秒)

別のキーワード

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

検索結果

<< 1 2 > >>

URI::Generic#path -> String | nil (29184.0)

自身の path を文字列で返します。設定されていない場合は nil を返します。

... path を文字列で返します。設定されていない場合は nil を返します。

require 'uri'
p URI.parse('http://example.com/hoge').path #=> "/hoge"
p URI.parse('http://example.com').path #=> ""
p URI.parse('mailto:nospam@localhost').path #=> nil
p URI...
...('ftp://example.com/foo').path #=> 'foo'
p URI('ftp://example.com/%2Ffoo').path #=> '/foo'...

Net::HTTPGenericRequest#path -> String (18148.0)

リクエストする path を文字列で返します。

...リクエストする path を文字列で返します。

//emlist[例][ruby]{
require 'net/http'

uri
= URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.path # => "/index.html"
//}...

WEBrick::HTTPRequest#path -> String (18118.0)

リクエスト URI のパスを表す文字列を返します。

...リクエスト URI のパスを表す文字列を返します。...

URI::HTTP#request_uri -> String (17164.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...

URI::Generic#path=(s) (17142.0)

自身の path を設定します。

...自身の path を設定します。

@param s 自身の path を表す文字列を指定します。

@raise URI::InvalidComponentError 不正な引数 s に対して発生します。

@raise URI::InvalidURIError opaque と path を同時に設定した場合に発生します。...

絞り込み条件を変える

Gem::RemoteFetcher#open_uri_or_path(uri, last_modified = nil, head = false, depth = 0) -> StringIO | File (12336.0)

@param uri URI を指定します。

...@param uri URI を指定します。

@param last_modified 最終更新時刻を指定します。

@param head 真を指定するとヘッダ情報のみ取得します。

@param depth 現在のリダイレクト回数を指定します。

@raise Gem::RemoteFetcher::FetchError デフォルトで...

Gem::RemoteFetcher#get_file_uri_path(uri) -> String (12332.0)

与えられた URI から "file://" を取り除いた文字列を返します。

...与えられた URI から "file://" を取り除いた文字列を返します。

@param uri URI を表す文字列を指定します。...

URI::Generic#select(*components) -> [String] (11031.0)

指定された components に対応する構成要素を文字列の配列として返します。

...字列の配列として返します。

@param components 構成要素名をシンボルで指定します。

例:
require 'uri'

uri
= URI.parse('http://myuser:mypass@my.example.com/test.rbx')
p uri.select(:userinfo, :host, :path)
# => ["myuser:mypass", "my.example.com", "/test.rbx"]...

URI::Generic#hierarchical? -> bool (11017.0)

自身に path が設定されているなら true を返します。そうでない場合は false を返します。

...自身に path が設定されているなら true を返します。そうでない場合は false を返します。...
<< 1 2 > >>