yuzd / httpclientfactory Goto Github PK
View Code? Open in Web Editor NEWsafe HttpClient For netcore And netframework
License: MIT License
safe HttpClient For netcore And netframework
License: MIT License
Hi,
The MIT Licence file pops up in my project structure, making my personal project MIT, can you fix this please?
Thanks
Jamie
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
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");
Please can you add the license link to the nuget info page? our licence scanning tool is insisting this package isn't licenced.
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.