CrowdHailer / raxx

Interface for HTTP webservers, frameworks and clients
https://hexdocs.pm/raxx
Apache License 2.0
402 stars 29 forks source link

Add middleware Raxx.Flash #76

Closed CrowdHailer closed 6 years ago

CrowdHailer commented 6 years ago

This should be started in a new repo and linked from the extensions section of this repo. The hex project should be raxx_flash.

Multiple storage mechanisms should be possible. url_query, sessions. There should be general helpers like Flash.write(success: message) Flash.read(request)

A previous implementation existed here https://github.com/CrowdHailer/Tokumei/blob/master/app/lib/tokumei/flash.ex, Note this was several breaking changes ago in the Raxx API

CrowdHailer commented 6 years ago

This can be tackled later once a more general purpose middleware for sessions is available.

With explicit reading and writing of sessions a flash implementation is nothing more than poping keys from a session