Class: Falcon::Service::Proxy

Inherits:
Generic
  • Object
show all
Defined in:
lib/falcon/service/proxy.rb

Direct Known Subclasses

Application

Instance Method Summary collapse

Methods inherited from Generic

#include?, #initialize, #logger, #setup, #start, #stop, wrap

Constructor Details

This class inherits a constructor from Falcon::Service::Generic

Instance Method Details

#authorityObject

The host that this proxy will receive connections for.



19
20
21
# File 'lib/falcon/service/proxy.rb', line 19

def authority
	@evaluator.authority
end

#endpointObject

The upstream endpoint that this proxy will connect to.



24
25
26
# File 'lib/falcon/service/proxy.rb', line 24

def endpoint
	@evaluator.endpoint
end

#nameObject



14
15
16
# File 'lib/falcon/service/proxy.rb', line 14

def name
	"#{self.class} for #{self.authority}"
end

#protocolObject

The protocol this proxy will use to talk to the upstream host.



39
40
41
# File 'lib/falcon/service/proxy.rb', line 39

def protocol
	endpoint.protocol
end

#rootObject

The root



34
35
36
# File 'lib/falcon/service/proxy.rb', line 34

def root
	@evaluator.root
end

#schemeObject

The scheme this proxy will use to talk to the upstream host.



44
45
46
# File 'lib/falcon/service/proxy.rb', line 44

def scheme
	endpoint.scheme
end

#ssl_contextObject

The OpenSSL::SSL::SSLContext that will be used for incoming connections.



29
30
31
# File 'lib/falcon/service/proxy.rb', line 29

def ssl_context
	@evaluator.ssl_context
end