For fun wrapper around httprb
Filters sensitive information out of logging. Filters long body content and/or response types such as
application/octet-stream
XeroHTTP.filtered_logging(logger, filters: [/Authorization/])Raises when http request returns 400/500.
XeroHTTP.raise_for_status(except: [])XeroHTTP.download(url, destination) do |chunk|
endXeroHTTP.stream(url, io) do |chunk|
end