Attributes
partial_response | [W] | |
retries | [RW] |
Public Class methods
new(*args)
[show source]
# File lib/httpx/plugins/retries.rb 169 def initialize(*args) 170 super 171 @retries = @options.max_retries 172 end
Public Instance methods
response=(response)
[show source]
# File lib/httpx/plugins/retries.rb 174 def response=(response) 175 if @partial_response 176 if response.is_a?(Response) && response.status == 206 177 response.from_partial_response(@partial_response) 178 else 179 @partial_response.close 180 end 181 @partial_response = nil 182 end 183 184 super 185 end