5 ms·
Show HN: Niquests – a simple HTTP library, a drop-in replacement for Requests
- 0xDeveloper 3y agoLooks cool! Will have to give it a try to see if it works like promised!
- noopside 3y agowill be glad to answer any concerns if you encounter any, the repo issue tracker will welcome your feedbacks.
- judiisis 3y agoNice seeing support of modern protocols in http libraries
- Alifatisk 3y agoThat's pretty bold claims
- plagiat0r 3y agoDoes it support happy eyeball algorithm for dual stack and portions of it for single stack, when multiple A(dress) records are returned, to figure out which destination accepts our connect() ?
- noopside 3y agoNot yet, but is coming soon. We have a minor technical challenge to make it work with QUIC.
- plagiat0r 3y agoThat would be awesome if even just for tcp protocols. I've been looking at contrib.resolver in urllib3.future and noticed that you only parse A,AAAA,HTTPS from responses, but you do not handle a CNAME. I wonder, because kubernetes service can return a CNAME for app to follow: https://kubernetes.io/docs/concepts/services-networking/service/#externalname https://kubernetes.io/docs/concepts/services-networking/serv... Just wonder, if this is something worth pursuing, to follow one CNAME... I'm fully aware this is not a recursive resolver, but just wondering about a CNAME response from coredns here...
- noopside 3y agoThis would be done gladly. Open an issue at urllib3.future and a proper tracking will be made. The internal resolver is recursive, so CNAME are automatically translated into addresses. What remain is the happy eyeball implementation, which is almost completed already. we wanted to wait for an harmonious feature (e.g. available across all 3 protocols) but can be speeded up if really needed.
- noopside 3y agothere https://github.com/jawah/urllib3.future/issues https://github.com/jawah/urllib3.future/issues
- jskherman 3y agoTIL requests is still at HTTP/1.1 by default. That's... Internet Explorer old.
- mdaniel 3y agoWow, that feature matrix is some A++ - it makes me want to try and integrate this into Scrapy to make its requests stand out less, extra bonus if niquests allows fine-grain control over header ordering and similar fingerprint-avoidance trickery
- noopside 3y agoGlad to hear that. This is actually planned, the miscellaneous control for networking fingerprint (mimic chrome tls handshake). will come soon enough. for now, my own experience shows that it is more resilient as is (with appropriate headers (order being kept already).