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.


36
37
38
# File 'lib/falcon/service/proxy.rb', line 36

def authority
	@evaluator.authority
end

#endpointObject

The upstream endpoint that this proxy will connect to.


41
42
43
# File 'lib/falcon/service/proxy.rb', line 41

def endpoint
	@evaluator.endpoint
end

#nameObject


31
32
33
# File 'lib/falcon/service/proxy.rb', line 31

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

#protocolObject

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


56
57
58
# File 'lib/falcon/service/proxy.rb', line 56

def protocol
	endpoint.protocol
end

#rootObject

The root


51
52
53
# File 'lib/falcon/service/proxy.rb', line 51

def root
	@evaluator.root
end

#schemeObject

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


61
62
63
# File 'lib/falcon/service/proxy.rb', line 61

def scheme
	endpoint.scheme
end

#ssl_contextObject

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


46
47
48
# File 'lib/falcon/service/proxy.rb', line 46

def ssl_context
	@evaluator.ssl_context
end