-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Middleware: HTTP support (part 3/4) #12845
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Middleware: HTTP support (part 3/4) #12845
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #12845 +/- ##
=======================================
Coverage 91.54% 91.54%
=======================================
Files 499 499
Lines 27052 27076 +24
=======================================
+ Hits 24764 24788 +24
Misses 1809 1809
Partials 479 479 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
// HTTPClientFunc implements an HTTP client middleware function. This | ||
// is the equivalent of net/http.HandlerFunc for creating a | ||
// net/http.RoundTripper from a function. | ||
type HTTPClientFunc func(*http.Request) (*http.Response, error) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RoundTripperFunc to be consistent with http.HandlerFunc
?
…nc (#12895) #### Description Fixes #12845 (comment)
Description
Adds the HTTP middleware support from #12842.
Link to tracking issue
Part of #12603.
Testing
Yes.
Documentation
Added.