Method: HTTPX::Channel#match?

Defined in:
lib/httpx/channel.rb

#match?(uri) ⇒ Boolean

Returns:

  • (Boolean)


129
130
131
132
133
# File 'lib/httpx/channel.rb', line 129

def match?(uri)
  return false if @state == :closing

  @origins.include?(uri.origin) || match_altsvcs?(uri)
end