module HTTPX::Plugins::Tracing::HTTP2Methods

  1. lib/httpx/plugins/tracing.rb

Methods

Public Class

  1. new

Public Instance

  1. send

Public Class methods

new(*)
[show source]
    # File lib/httpx/plugins/tracing.rb
161 def initialize(*)
162   super
163 
164   @handshake_time = nil
165   @handshake_init_time = ::Time.now.utc
166 end

Public Instance methods

send(request, head = false)
[show source]
    # File lib/httpx/plugins/tracing.rb
168 def send(request, head = false)
169   if head
170     # only true for pending requests waiting on the handshake, so handshake time accrues.
171     request.handshake_time ||= 0.0
172     request.handshake_time += @handshake_time
173   end
174 
175   super
176 end