Closed john-odonnell closed 1 year ago
Code Climate has analyzed commit 78ce00c0 and detected 0 issues on this pull request.
The test coverage on the diff in this pull request is 100.0% (50% is the threshold).
This pull request will bring the total coverage in the repository to 82.2% (0.0% change).
View more on Code Climate.
Desired Outcome
DRYing this up.
redactRequestBody
andredactResponseBody
did a lot of the same stuff, but I couldn't set up a generic type to represent them both.Implemented Changes
Instead of running body redaction logic against
*http.Request
and*http.Response
objects, operate against pointers to theirReadCloser
bodies andint64
content-lengths.Connected Issue/Story
N/A
Definition of Done
At least 1 todo must be completed in the sections below for the PR to be merged.
Changelog
Test coverage
Documentation
README
s) were updated in this PRBehavior
Security