Class: HTTP::URI
- Inherits:
-
Addressable::URI
- Object
- Addressable::URI
- HTTP::URI
- Defined in:
- lib/http/uri.rb
Constant Summary collapse
- HTTP_SCHEME =
"http".freeze
- HTTPS_SCHEME =
"https".freeze
Instance Method Summary collapse
- #http? ⇒ True, False
- #https? ⇒ True, False
-
#inspect ⇒ String
Human-readable representation of URI.
Instance Method Details
#https? ⇒ True, False
20 21 22 |
# File 'lib/http/uri.rb', line 20 def https? HTTPS_SCHEME == scheme end |
#inspect ⇒ String
Returns human-readable representation of URI.
25 26 27 |
# File 'lib/http/uri.rb', line 25 def inspect format("#<%s:%#0x URI:%s>", self.class, object_id, to_s) end |