class Async::HTTP::Statistics
def self.start
def self.start self.new(Clock.now) end
def initialize(start_time)
def initialize(start_time) @start_time = start_time end
def wrap(response, &block)
def wrap(response, &block) if response and response.body response.body = Body::Statistics.new(@start_time, response.body, block) end end