192件ヒット
[1-100件を表示]
(0.078秒)
ライブラリ
-
net
/ http (60) -
rubygems
/ remote _ fetcher (36) - uri (60)
-
webrick
/ httprequest (36)
クラス
-
Gem
:: RemoteFetcher (36) -
Net
:: HTTPGenericRequest (36) -
Net
:: HTTPResponse (24) -
URI
:: Generic (48) -
URI
:: HTTP (12) -
WEBrick
:: HTTPRequest (36)
キーワード
-
body
_ stream (12) -
body
_ stream= (12) -
fetch
_ path (12) -
get
_ file _ uri _ path (12) - hierarchical? (12)
-
open
_ uri _ or _ path (12) - path= (12)
-
path
_ info (12) -
path
_ info= (12) -
read
_ body (24) -
request
_ uri (12) - select (12)
検索結果
先頭5件
-
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 を返します。...