Questions tagged [fluent-http-client]

As discussed in the docs, FluentHttpClient is a modern async HTTP client for REST APIs. Its fluent interface lets you send an HTTP request and parse the response in one go — hiding away the gritty details like deserialisation, content negotiation, optional retry logic, and URL encoding:

Blog result = await new FluentClient("https://example.org/api")
   .GetAsync("blogs")
   .WithArgument("id", 15)
   .WithBearerAuthentication(token)
   .As<Blog>();

Designed with discoverability and extensibility as core principles, just autocomplete to see which methods are available at each step.

2 questions
0
votes
1 answer

Pathoschild/FluentHttpClient giving error for custom retry coordination using Polly

I am referring this https://github.com/Pathoschild/FluentHttpClient#custom-retry--coordination to create a custom retry coordination and trying to use Polly here, but I am getting below error, 'PolicyBuilder< HttpResponseMessage>' does not…
user584018
  • 10,186
  • 15
  • 74
  • 160
0
votes
1 answer

How to use SetRequestCoordinator from Pathoschild lib?

I set on purpose the timeout very low to make the http call crash in order to test the retry feature but an exception is raised so the httpClient didn't retry the previous request. I thought at first that only if after some attempts configured by…
onepix
  • 289
  • 2
  • 11