3 ms·
> Do you feel like http server/client is ‘mandatory’ in a standard library in 2021? A server isn't necessary, but 100% yes for a client. There's a lot of eatin
by naasking 5y ago
> Do you feel like http server/client is ‘mandatory’ in a standard library in 2021?
A server isn't necessary, but 100% yes for a client. There's a lot of eating your own dog food needed for an http client, like string handling with encodings, network bindings, various collection types, async I/O and/or binary streams, error handling. The resulting client showcases the strengths of the language and its standard library, and most data is on the web today.
- c-cube 5y agoHigh level bindings to cURL would be better imo. You don't reinvent this tricky wheel, and you get a lot of features (even async I think?) on top of a strong implementation. And a http server really doesn't belong in the stdlib of a system language.