question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Providing the HttpClient

See original GitHub issue

In a backend api server environment, it’s common to refer to an IHttpClientFactory to build and manage the life instance of the HttpClient

Instead of relying on a static instance of an internal static, instead provide a

HttpEngine {

  internal static Func<HttpClient> { get; public set; } =
  {
      // current implementation logic
  }
}

By providing the current behavior it would not break the current implementation

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
bobbyangerscommented, Jan 17, 2022

@vivet, you are welcome. I respect that you are busy. let me know if you need more explanations;

in the meantime, I’ll publish my fork in a private asset/nuget and use that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

HttpClient guidelines for .NET
An HttpClient instance is a collection of settings that's applied to all requests executed by that instance, and each instance uses its own ......
Read more >
HttpClient Tutorial
This tutorial is designed to provide a basic overview of how to use HttpClient. When you have completed the tutorial you will have...
Read more >
Exploring the New HTTP Client in Java
Unlike HttpURLConnection, HTTP Client provides synchronous and asynchronous request mechanisms. The API consists of three core classes:.
Read more >
Angular Basics: How To Use HttpClient in Angular
HttpClient is a built-in service class available in the @angular/common/http package. It has multiple signature and return types for each ...
Read more >
Understanding communicating with backend services ...
Angular provides a client HTTP API for Angular applications, the HttpClient service class in @angular/common/http . Prerequisiteslink. Before working with the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found