Class: Nonnative::NoProxy
Overview
No-op proxy implementation.
This is the default proxy when service.proxy.kind is ‘“none”` (or an unknown kind is provided). It does not bind/listen or alter traffic; it simply exposes the underlying runner’s configured host and port.
Runners can always call start, stop, and reset safely on this proxy.
Instance Method Summary collapse
-
#host ⇒ String
Returns the host clients should connect to.
-
#port ⇒ Integer
Returns the port clients should connect to.
-
#reset ⇒ void
Resets the proxy state.
-
#start ⇒ void
Starts the proxy.
-
#stop ⇒ void
Stops the proxy.
Methods inherited from Proxy
Constructor Details
This class inherits a constructor from Nonnative::Proxy
Instance Method Details
#host ⇒ String
Returns the host clients should connect to.
For Nonnative::NoProxy, this is the underlying runner configuration host.
47 48 49 |
# File 'lib/nonnative/no_proxy.rb', line 47 def host service.host end |
#port ⇒ Integer
Returns the port clients should connect to.
For Nonnative::NoProxy, this is the underlying runner configuration port.
56 57 58 |
# File 'lib/nonnative/no_proxy.rb', line 56 def port service.port end |
#reset ⇒ void
This method returns an undefined value.
Resets the proxy state.
This implementation does nothing.
38 39 40 |
# File 'lib/nonnative/no_proxy.rb', line 38 def reset # Do nothing. end |
#start ⇒ void
This method returns an undefined value.
Starts the proxy.
This implementation does nothing.
20 21 22 |
# File 'lib/nonnative/no_proxy.rb', line 20 def start # Do nothing. end |
#stop ⇒ void
This method returns an undefined value.
Stops the proxy.
This implementation does nothing.
29 30 31 |
# File 'lib/nonnative/no_proxy.rb', line 29 def stop # Do nothing. end |