Comments (4)
Thanks for the suggestion James - I've definitely done something similar in our own tests, but I can't remember the specifics.
I'll have a dig and see if I can find one, if not I'll try and rustle something up.
If that fails, I'll have a think about how we could extend the API to support this use case.
from httpclient-interception.
Hi James - I've opened #248 with an example of how to achieve this.
It's not the most intuitive with the functionality available today, so definitely highlights an area for improvement!
If this solves your immediate request, I'll merge it and close this issue and open an issue to look at making this use case easier to achieve.
from httpclient-interception.
That's perfect, thank you! I didn't even look at priority, that makes a lot of sense.
from httpclient-interception.
Great, I'm glad it's useful. I'm going to close this now and merge the example, but let us know if you have any other issues.
I've opened #249 to track making this better in a future version.
from httpclient-interception.
Related Issues (20)
- Add ability to add multiple hosts HOT 15
- MissingMethodException when running on mono with newer Newtonsoft.Json HOT 13
- Allow access to CancellationToken HOT 2
- Support for intercepting all requests sent to HttpClient HOT 14
- Question: How to simulate a timeout/no response from downstream service HOT 2
- Improve custom matching HOT 3
- NullReferenceException when Deregister builder with a custom matcher HOT 2
- Verify calls to the registered end points have been called [discussion] HOT 8
- Same request but with different responses HOT 4
- Add [StringSyntax] attributes HOT 2
- Remove Newtonsoft.Json
- Async RegisterBundle() overloads
- WithResponseHeaders and WithContentHeaders overloads HOT 7
- Fix remote certificate is invalid for https HOT 3
- Response sequence HOT 1
- Add exception list for urls to ignore when ThrowOnMissingRegistration is true
- Question: Should HttpClient created from HttpClientInterceptorOptions auto-follow redirects? HOT 1
- ILogger<T> Integration? HOT 1
- Update README for bundles
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from httpclient-interception.