module HTTPX::AltSvc::ConnectionMixin

  1. lib/httpx/altsvc.rb

makes connections able to accept requests destined to primary service.

Methods

Public Instance

  1. match?
  2. send

Public Instance methods

match?(uri, options)
[show source]
   # File lib/httpx/altsvc.rb
17 def match?(uri, options)
18   return false if !used? && (@state == :closing || @state == :closed)
19 
20   match_altsvcs?(uri) && match_altsvc_options?(uri, options)
21 end
send(request)
[show source]
   # File lib/httpx/altsvc.rb
11 def send(request)
12   request.headers["alt-used"] = @origin.authority if @parser && !@write_buffer.full? && match_altsvcs?(request.uri)
13 
14   super
15 end