Module: WebPipe::Url
- Included in:
- Conn
- Defined in:
- lib/web_pipe/extensions/url/url.rb
Overview
See the docs for the extension linked from the README.
Instance Method Summary collapse
-
#base_url ⇒ String
Base part of the URL.
-
#full_path ⇒ String
URL full path.
-
#path ⇒ String
URL path.
-
#url ⇒ String
Request URL.
Instance Method Details
#base_url ⇒ String
Base part of the URL.
This is #scheme and #host, adding #port unless it is the default one for the scheme.
17 18 19 |
# File 'lib/web_pipe/extensions/url/url.rb', line 17 def base_url request.base_url end |
#full_path ⇒ String
URL full path.
This is #path with #query_string if present.
41 42 43 |
# File 'lib/web_pipe/extensions/url/url.rb', line 41 def full_path request.fullpath end |
#path ⇒ String
URL path.
This is #script_name and #path_info.
29 30 31 |
# File 'lib/web_pipe/extensions/url/url.rb', line 29 def path request.path end |
#url ⇒ String
Request URL.
This is the same as #base_url plus #full_path.
53 54 55 |
# File 'lib/web_pipe/extensions/url/url.rb', line 53 def url request.url end |