feat: add WriteWithInterceptor example#227
Conversation
alespour
left a comment
There was a problem hiding this comment.
The title should be "feat: add WriteWithInterceptor example", I assume.
There was a problem hiding this comment.
Pull request overview
Adds a new C# example demonstrating how to write data using a custom HttpClient interceptor/handler, and wires it into the General examples runner.
Changes:
- Add
WriteWithInterceptorexample with aDelegatingHandlerthat modifies request headers - Register the new example in
Examples/General/Runner.cs - Document the example addition in
CHANGELOG.md
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| Examples/General/WriteWithInterceptor.cs | New write example using a custom HttpClient handler/interceptor |
| Examples/General/Runner.cs | Adds a runner entry to execute the new example |
| CHANGELOG.md | Adds a feature note for the new example |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
728c59a to
e0c7023
Compare
|
It is ok, but I'm just not sure modifying Authorization header is the best example, because
So I would find example setting header like
better. But I have no strong opinion about this. Technically GTG. |
Hi, suggestions make sense. I have updated the example. |
Closes #
Proposed Changes
Checklist