GithubHelp home page GithubHelp logo

httpclientfactory's People

Contributors

qrdemole avatar yuzd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

httpclientfactory's Issues

Wrong placement of MIT Licence

Hi,
The MIT Licence file pops up in my project structure, making my personal project MIT, can you fix this please?

Thanks
Jamie

License

Hello,

Thank you for creating / sharing this library, it's a nice alternative to Microsoft.Extensions.HttpClientFactory. I wasn't able to find a license file in the repo, can you add one by chance or add a license section to the readme?

Cheers,
Adam

How to Check if sessions/cookies expired ?

Hi, How can i find if sessions/cookies expired ?

I used below code to create httpClient

var  cookies = new CookieContainer();
var handler = new HttpClientHandler();
handler.CookieContainer = cookies;
handler.CookieContainer = cookies;
client = new HttpClient(handler);

and below Code to validate if Cookie is expired or not :

IEnumerable<Cookie> responseCookies = cookies.GetCookies(client.BaseAddress).Cast<Cookie>();
foreach (Cookie cookie in responseCookies)
{
      if (cookie.Name == "CookieName" )
      {
             return !cookie.Expired;
      }
}
return false;

would you please help me if I want to use your simple code !!!

//useage 1: same Host use same HttpClient
PerHostHttpClientFactory perHostHttpClientFactory = new PerHostHttpClientFactory(TimeSpan.FromSeconds(10));
HttpClient client = perHostHttpClientFactory.GetHttpClient("http://www.baidu.com");

Nuget Licence info

Please can you add the license link to the nuget info page? our licence scanning tool is insisting this package isn't licenced.

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.