Skip to content
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

Add InterceptResponse to the Plugin interface #205

Merged
merged 1 commit into from
May 3, 2023
Merged

Conversation

nmaquet
Copy link
Contributor

@nmaquet nmaquet commented May 2, 2023

InterceptResponse is called after bramble has finished executing a request. It can be used to inspect and/or modify the response bramble will return.

Added to help with #204

@nmaquet nmaquet requested a review from a team as a code owner May 2, 2023 23:43
@nmaquet nmaquet mentioned this pull request May 2, 2023
@codecov-commenter
Copy link

codecov-commenter commented May 2, 2023

Codecov Report

Patch coverage: 41.66% and project coverage change: -0.11 ⚠️

Comparison is base (b2865c4) 71.10% compared to head (21d7cd9) 70.99%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #205      +/-   ##
==========================================
- Coverage   71.10%   70.99%   -0.11%     
==========================================
  Files          26       26              
  Lines        2710     2717       +7     
==========================================
+ Hits         1927     1929       +2     
- Misses        660      665       +5     
  Partials      123      123              
Impacted Files Coverage Δ
plugin.go 0.00% <0.00%> (ø)
executable_schema.go 77.29% <45.45%> (-0.39%) ⬇️

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@LeonHuston LeonHuston left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine to me, maybe want to add an example of some ways you can use this (maybe doing what that other person was asking about)

Copy link
Member

@pkqk pkqk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree with @LeonHuston comment about examples, we should probably have one for each plugin method.

Changes look good.

Copy link
Member

@pkqk pkqk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you squash the typo commit though @nmaquet

InterceptResponse is called after bramble has finished executing a request.
It can be used to inspect and/or modify the response bramble will return.
@nmaquet
Copy link
Contributor Author

nmaquet commented May 3, 2023

Can you squash the typo commit though @nmaquet

Done!

@pkqk pkqk merged commit 9be616a into main May 3, 2023
@pkqk pkqk deleted the intercept-response branch May 3, 2023 01:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants