Skip to content

quasiquoting/lfe-cowboy-examples

Repository files navigation

LFE Cowboy Examples

LFE ports of the Cowboy examples.


ExampleDescription
chunked-hello-worlddemonstrate chunked data transfer with two one-second delays
compress-responsesend a response body compressed if the client supports it
cookieset cookies from server and client side
echo-getparse and echo a GET query string
echo-postparse and echo a POST parameter
error-hookprovide custom error pages
eventsourceeventsource emitter and consumer
hello-worldsimplest example application
markdown-middlewarestatic file handler with markdown preprocessor
rest-hello-worldreturn the data type that matches the request type (html, json or text)
rest-basic-authbasic HTTP authorization with REST
rest-pastebincreate text objects and return the data type that matches the request type (html, text)
rest-stream-responsestream results from a data store
ssl-hello-worldsimplest SSL application
static-worldstatic file handler
web-serverserve files and list directory entries
websocketwebsocket example
uploadmultipart/form-data upload

Other Languages