Attributes
partial_response | [W] | |
retries | [RW] |
Public Class methods
new(*args)
[show source]
# File lib/httpx/plugins/retries.rb 187 def initialize(*args) 188 super 189 @retries = @options.max_retries 190 end
Public Instance methods
response=(response)
[show source]
# File lib/httpx/plugins/retries.rb 192 def response=(response) 193 if @partial_response 194 if response.is_a?(Response) && response.status == 206 195 response.from_partial_response(@partial_response) 196 else 197 @partial_response.close 198 end 199 @partial_response = nil 200 end 201 202 super 203 end