module HTTPX::URIExtensions

  1. lib/httpx/extensions.rb

Public Instance methods

authority()
[show source]
   # File lib/httpx/extensions.rb
34 def authority
35   return host if port == default_port
36 
37   "#{host}:#{port}"
38 end
non_ascii_hostname()
[show source]
   # File lib/httpx/extensions.rb
26 def non_ascii_hostname
27   @non_ascii_hostname
28 end
non_ascii_hostname=(hostname)
[show source]
   # File lib/httpx/extensions.rb
30 def non_ascii_hostname=(hostname)
31   @non_ascii_hostname = hostname
32 end
origin()
[show source]
   # File lib/httpx/extensions.rb
40 def origin
41   "#{scheme}://#{authority}"
42 end