module HTTPX::Plugins::Retries::RequestMethods

  1. lib/httpx/plugins/retries.rb

Methods

Public Class

  1. new

Public Instance

  1. partial_response
  2. response=
  3. retries

Attributes

Public Class methods

new(*args)
[show source]
    # File lib/httpx/plugins/retries.rb
190 def initialize(*args)
191   super
192   @retries = @options.max_retries
193 end

Public Instance methods

response=(response)
[show source]
    # File lib/httpx/plugins/retries.rb
195 def response=(response)
196   if @partial_response
197     if response.is_a?(Response) && response.status == 206
198       response.from_partial_response(@partial_response)
199     else
200       @partial_response.close
201     end
202     @partial_response = nil
203   end
204 
205   super
206 end