go-resty / resty

Simple HTTP and REST client library for Go
MIT License
9.89k stars 696 forks source link

docs: fix OnBeforeRequst doc application order #701

Closed leejuyuu closed 11 months ago

leejuyuu commented 11 months ago

The documentation about the order of middleware application for OnBeforeRequet was different from the implementation. Fixed this by changing the documentation.

Fixes https://github.com/go-resty/resty/issues/686.

codecov[bot] commented 11 months ago

Codecov Report

Patch and project coverage have no change.

Comparison is base (9ef9b6f) 95.65% compared to head (ce4aaac) 95.65%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #701 +/- ## ======================================= Coverage 95.65% 95.65% ======================================= Files 12 12 Lines 1611 1611 ======================================= Hits 1541 1541 Misses 42 42 Partials 28 28 ``` | [Files Changed](https://app.codecov.io/gh/go-resty/resty/pull/701?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=go-resty) | Coverage Δ | | |---|---|---| | [client.go](https://app.codecov.io/gh/go-resty/resty/pull/701?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=go-resty#diff-Y2xpZW50Lmdv) | `96.52% <ø> (ø)` | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.