Class: Nonnative::HTTPProxyServer
- Inherits:
-
HTTPServer
- Object
- Runner
- Server
- HTTPServer
- Nonnative::HTTPProxyServer
- Defined in:
- lib/nonnative/http_proxy_server.rb
Instance Attribute Summary
Attributes inherited from Runner
Instance Method Summary collapse
-
#initialize(host, service) ⇒ HTTPProxyServer
constructor
A new instance of HTTPProxyServer.
Methods inherited from Server
Methods inherited from Runner
Constructor Details
#initialize(host, service) ⇒ HTTPProxyServer
Returns a new instance of HTTPProxyServer.
40 41 42 43 44 45 46 47 48 |
# File 'lib/nonnative/http_proxy_server.rb', line 40 def initialize(host, service) app = Sinatra.new(Nonnative::HTTPProxy) do configure do set :host, host end end super(app, service) end |