Attributes
partial_response | [W] | |
retries | [RW] |
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