class Falcon::ProxyEndpoint
An endpoint suitable for proxing requests, typically via a unix pipe.
def self.unix(path, **options)
Create a proxy unix endpoint with the specific path.
def self.unix(path, **options) self.new(::Async::IO::Endpoint.unix(path), **options) end
def authority
e.g. `"myapp.com"`.
The authority to use for this endpoint.
def authority @options[:authority] end
def bind(&block)
def bind(&block) @endpoint.bind(&block) end
def connect(&block)
def connect(&block) @endpoint.connect(&block) end
def each
@yields {|endpoint| ...}
If the endpoint has multiple underlying endpoints, this will enumerate them individually.
Enumerate the endpoint.
def each return to_enum unless block_given? @endpoint.each do |endpoint| yield self.class.new(endpoint, **@options) end end
def initialize(endpoint, **options)
Initialize the proxy endpoint.
def initialize(endpoint, **options) super(**options) @endpoint = endpoint end
def protocol
The protocol to use for this connection.
def protocol @options[:protocol] end
def scheme
e.g. `"http"`.
The scheme to use for this endpoint.
def scheme @options[:scheme] end
def to_s
def to_s "\#<#{self.class} endpoint=#{@endpoint}>" end