-
-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Web framework: WAI instead of Snap #5
Comments
Agreed completely, Greg. I picked this as it's the one I already knew. I think I'll take that dependency out and then in the examples I can do a few different frameworks. |
+1 and Yesod for sure:) |
Actually, I think WAI is a much better target to start with than Yesod specifically. |
Good point. |
WAI would be logical to continue this simple signal/poll request approach that I'm taking presently. As I only use:
Another option would be for me to migrate the code to websockets (which was part of the plan anyway), in which case it'll run on anything that implements websockets (and there is already a WAI wrapper for websockets in the WAI package). I think I will try this as it supports browsers that don't have websockets via Flash. |
+1 to this. WAI is the way to go, and would make it easy to integrate with Servant too, via Servant.API.Raw. threepenny-gui has transitioned to websockets since the last post here. This seems like it would be fairly easy to do now. My plan would be:
So it would depend on wai, wai-route, and warp. Does this seems a reasonable plan? |
Reimplementing the web server on top of WAI seems fairly straightforward indeed, since the HTTP-related code is mostly confined to the It's not something I intend to implement myself, but I'm happy to accept and maintain contributions on this, so go ahead if you feel like implementing this. |
I would also like to see What isn't clear to me is how the cookies handling added in 6bc3cfa should be adapted – we're using (/cc @blitzcode) |
I was somewhat fond of the Cookie type introduced by This change makes it necessary to increase the major version number. |
I think this library should be able to drop the snap dependency and be framework independent.
The text was updated successfully, but these errors were encountered: