Skip to content

one-m1nd/xerohttp

Repository files navigation

Xerohttp

For fun wrapper around httprb

Filtered logging

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/])

Raise for status

Raises when http request returns 400/500.

XeroHTTP.raise_for_status(except: [])

Downloading a file

XeroHTTP.download(url, destination) do |chunk|
  
end

Streaming an object

XeroHTTP.stream(url, io) do |chunk|
  
end

About

For fun wrapper around HTTPrb

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published