Class: Nonnative::HTTPProxyServer

Inherits:
HTTPServer show all
Defined in:
lib/nonnative/http_proxy_server.rb

Instance Attribute Summary

Attributes inherited from Runner

#proxy

Instance Method Summary collapse

Methods inherited from Server

#start, #stop

Methods inherited from Runner

#name

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