Method: Addressable::URI#origin
- Defined in:
- lib/addressable/uri.rb
#origin ⇒ String
The origin for this URI, serialized to ASCII, as per RFC 6454, section 6.2.
1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 |
# File 'lib/addressable/uri.rb', line 1314 def origin if self.scheme && self. if self.normalized_port "#{self.normalized_scheme}://#{self.normalized_host}" + ":#{self.normalized_port}" else "#{self.normalized_scheme}://#{self.normalized_host}" end else "null" end end |