Is it me or are we running out of names for things?
Mint, a new HTTP library for Elixir
11–20 of 58 posts
Re: Mint, a new HTTP library for Elixir
#12It took me a while to figure out whether this is an HTTP client library or a server library. Turns out it is the former. Nice! I like that it's in-process. I wish more Elixir libraries would default to such a design. (EDIT: I had accidentally written "latter" instead of "former" above, causing a bunch of people to correct me, thanks for that)
Presumably this is because HTTP2 is sort of two protocol layers stuck together—a session layer and an application layer—and at the session layer, HTTP2 just has identical "peers" rather than any concept of client/server. (Theoretically either side of an HTTP2 connection could open a session to the other side and send a message! It's just the semantics of the HTTP-mimicking application layer that stop this. If you read the RFC, all the session stuff—frames et al—are specified in terms of "peers", and it's only when the spec starts talking about HTTP request-response that we see "clients" and "servers" mentioned.)
Since implementing the session layer is most of the work of implementing an HTTP2 client/server, and the session layer is just about "peers", once you've implemented it for a client (or server), you can reuse it to implement a server (or client) mostly "for free."
Re: Mint, a new HTTP library for Elixir
#13Re: Mint, a new HTTP library for Elixir
#14Re: Mint, a new HTTP library for Elixir
#15Is it me or are we running out of names for things?
In unrelated news, be sure to check out my new project Asbhrjfuugwxcgxedzkyhbwf!
Re: Mint, a new HTTP library for Elixir
#16A lightweight serverside Elixir framework like this is exactly what I was looking for earlier this week. Phoenix is really clunky in my opinion and pretty foreign (Ruby/Rails-like) coming from a lightweight Flask/Express/Go background.
Re: Mint, a new HTTP library for Elixir
#17While I have qualms about the name since this is like the 20th Mint I've heard of now, I'm incredibly excited as to what this has to offer. The control over the underlying process is key to creating beautifully asynchronous applications, and it gives me a lot of node-got vibes in terms of how easy it is to use. And thank god, HTTPS support built in... it never ceases to amaze me why some HTTP libs don't have TLS as a…
Separation of concerns. TLS termination is something that can be done separately, and at scale you want to separate it anyway.
Re: Mint, a new HTTP library for Elixir
#18A lightweight serverside Elixir framework like this is exactly what I was looking for earlier this week. Phoenix is really clunky in my opinion and pretty foreign (Ruby/Rails-like) coming from a lightweight Flask/Express/Go background.
Re: Mint, a new HTTP library for Elixir
#19"Mint, a new HTTP client for Elixir"
Re: Mint, a new HTTP library for Elixir
#20What does Mint provide over, say, HTTPoison? Still can't quite grok what it's offers.