aboutsummaryrefslogtreecommitdiffstats
path: root/ebin
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2017-04-27 15:23:57 +0200
committerLoïc Hoguin <[email protected]>2017-04-27 15:23:57 +0200
commit32db544782f2528ed0916eecb200f75924dcc407 (patch)
treeef8746ab021a8172ac84e9f72062922ec4263619 /ebin
parente8c08c95b896bf9d2dd299e5fdbff50f714e8749 (diff)
downloadgun-32db544782f2528ed0916eecb200f75924dcc407.tar.gz
gun-32db544782f2528ed0916eecb200f75924dcc407.tar.bz2
gun-32db544782f2528ed0916eecb200f75924dcc407.zip
Add content handlers and built-in SSE support
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.
Diffstat (limited to 'ebin')
-rw-r--r--ebin/gun.app2
1 files changed, 1 insertions, 1 deletions
diff --git a/ebin/gun.app b/ebin/gun.app
index cd61220..eefe4cc 100644
--- a/ebin/gun.app
+++ b/ebin/gun.app
@@ -1,7 +1,7 @@
{application, gun, [
{description, "HTTP/1.1, HTTP/2 and Websocket client for Erlang/OTP."},
{vsn, "1.0.0-pre.2"},
- {modules, ['gun','gun_app','gun_http','gun_http2','gun_spdy','gun_sup','gun_ws']},
+ {modules, ['gun','gun_app','gun_content_handler','gun_data','gun_http','gun_http2','gun_spdy','gun_sse','gun_sup','gun_ws']},
{registered, [gun_sup]},
{applications, [kernel,stdlib,ssl,cowlib,ranch]},
{mod, {gun_app, []}},