Class: Nonnative::HTTPProxyServer
- Inherits:
-
HTTPServer
- Object
- Runner
- Server
- HTTPServer
- Nonnative::HTTPProxyServer
- Defined in:
- lib/nonnative/http_proxy_server.rb
Overview
Runs HTTPProxy as a Puma-based in-process server under Nonnative.
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.
101 102 103 104 105 106 107 108 109 |
# File 'lib/nonnative/http_proxy_server.rb', line 101 def initialize(host, service) app = Sinatra.new(Nonnative::HTTPProxy) do configure do set :host, host end end super(app, service) end |