Closed BradLewis closed 6 months ago
Hello! I was going to deprecate this package as Cowboy performs much worse than Mist and Elli. What makes you want to use Cowboy specifically?
Thanks for the quick response! Nothing in particular, it was just when I saw the gleam 1.0 release I was interested in giving a http server a go. When looking at the repo here https://github.com/gleam-lang/http, I saw. cowboy mentioned and it had a very simple example in the readme which was enough for me to give it a go (compared to the mist example which is a lot more involved).
If you are planning on just deprecating it then fair enough, nothing to do here then!
Since you've done the works let's keep it for now, but I do recommend Mist over the others. I tend to use it with Wisp: https://gleam-wisp.github.io/wisp/
Sounds good to me. In the meantime I'll have a look into Mist + Wisp. Thanks!
The breaking changes to Gleam 1.0.0 means that this library no longer works. In particular, with the old
gleam/map
library being moved togleam/dict
results in the following error when running with gleam v1.As a second part of this, after switching this to using
gleam/dict
instead, I learnt that there was a breaking change incowboy
v2.11, which results in the following error due to cookie headers.This can be easily "fixed" by forcing
cowboy
< 2.11.0.