Exception: Rack::GenericProxyURI

Inherits:
Exception
  • Object
show all
Defined in:
lib/rack/reverse_proxy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#urlObject (readonly)

Returns the value of attribute url.



114
115
116
# File 'lib/rack/reverse_proxy.rb', line 114

def url
  @url
end

Instance Method Details

#intialize(url) ⇒ Object



116
117
118
# File 'lib/rack/reverse_proxy.rb', line 116

def intialize(url)
  @url = url
end

#to_sObject



120
121
122
# File 'lib/rack/reverse_proxy.rb', line 120

def to_s
  %Q(Your URL "#{@url}" is too generic. Did you mean "http://#{@url}"?)
end