Age | Commit message (Collapse) | Author | |
---|---|---|---|
2018-06-03 | Rename gun_data and gun_sse to gun_data_h and gun_sse_h | Loïc Hoguin | |
2017-08-12 | Fix a Dialyzer warning | Loïc Hoguin | |
2017-06-16 | Send a gun_sse message when the SSE stream closes | Loïc Hoguin | |
The message takes the following form: {gun_sse, Pid, Ref, fin} In other words instead of an event we get a 'fin' atom. | |||
2017-04-27 | Add content handlers and built-in SSE support | Loïc Hoguin | |
Content handlers are a chain of modules implementing callbacks that receive the body of responses and may modify it (for example for decompressing the content) or act upon it (like sending a message to the owner process. The gun_sse content handler module can be used to translate text/event-stream events on the fly and deliver them to the owner process as a {gun_sse...} message. This feature is currently not documented and is only tested against a public server. It requires an up to date Cowlib. |