phanxipang / fansipan

A simple package that allows you to write your API integrations or SDKs in a elegant way.
https://phanxipang.github.io/fansipan
MIT License
83 stars 2 forks source link

Follow redirects #11

Closed jenky closed 1 year ago

jenky commented 1 year ago

Description

Add ability to follow redirects by using middleware

codecov[bot] commented 1 year ago

Codecov Report

Merging #11 (768143d) into main (9632547) will increase coverage by 0.50%. The diff coverage is 82.95%.

@@             Coverage Diff              @@
##               main      #11      +/-   ##
============================================
+ Coverage     78.16%   78.67%   +0.50%     
- Complexity      286      312      +26     
============================================
  Files            28       31       +3     
  Lines           655      722      +67     
============================================
+ Hits            512      568      +56     
- Misses          143      154      +11     
Impacted Files Coverage Δ
src/Middleware/RetryRequests.php 84.00% <ø> (ø)
src/Traits/ConnectorDecoratorTrait.php 33.33% <33.33%> (ø)
src/Response.php 73.33% <50.00%> (-0.36%) :arrow_down:
src/Middleware/FollowRedirects.php 82.14% <82.14%> (ø)
src/FollowRedirectsConnector.php 100.00% <100.00%> (ø)
src/RetryableConnector.php 100.00% <100.00%> (ø)
src/Traits/ConnectorTrait.php 100.00% <100.00%> (ø)
src/Traits/HasClient.php 100.00% <100.00%> (ø)
src/Traits/HasMiddleware.php 100.00% <100.00%> (ø)

... and 4 files with indirect coverage changes

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more