0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 20:30:23 +00:00
Commit graph

66 commits

Author SHA1 Message Date
Loïc Hoguin
2f25c654b0 Convert the compressed response example to a release 2013-09-07 20:45:21 +02:00
Loïc Hoguin
4b20f5cd08 Convert the chunked hello world example to a release 2013-09-07 20:26:26 +02:00
Loïc Hoguin
bb9a2e975e Rename the basic_auth example to rest_basic_auth 2013-09-07 16:23:13 +02:00
Loïc Hoguin
51ce122858 Convert the basic auth example to a release 2013-09-07 16:18:51 +02:00
Loïc Hoguin
335676876b Convert the hello world example to a release 2013-09-07 15:33:40 +02:00
Loïc Hoguin
7ab12d1b66 Fix wrong header sent in echo_post example 2013-09-07 14:13:51 +02:00
Loïc Hoguin
4a30198f90 Make cowlib a proper dependency
Start moving a few functions from Cowboy into cowlib.
2013-09-04 19:24:54 +02:00
Loïc Hoguin
2e5eb16f3b Fix issue when modifying websocket example
Thanks ale.
2013-08-27 19:27:29 +02:00
Loïc Hoguin
694c9bfbfa Update Ranch to 0.8.5 2013-08-24 20:35:28 +02:00
Kuk-Hyun Lee
ddbe4e53b8 Fix rest_pastebin example 2013-08-01 10:56:35 +09:00
Loïc Hoguin
2923de944f Update Ranch to 0.8.4 2013-06-20 16:01:53 +02:00
Loïc Hoguin
3d2f7218c5 Update Ranch to 0.8.3 2013-05-16 19:10:32 +02:00
Adam Cammack
4e29a49472 Fix rest_pastebin example
Bring the rest_pastebin example in line with REST API changes for
creating resources.
2013-04-12 12:23:33 -05:00
Loïc Hoguin
d063511a0e Update Ranch to 0.8.1 2013-04-12 15:24:59 +02:00
Loïc Hoguin
5a171d0f80 Remove process_post, post_is_create, create_path, created_path callbacks
Instead it will always go through content_types_accepted and it is
up to the resource code to do any creation and to return the created
path if the method is POST and the client should be redirected to the
created resource's location.

This removes the meta value 'put_path' as it is not needed anymore.

This fixes an issue with PATCH where content types were not normalized.
2013-04-11 22:25:36 +02:00
Loïc Hoguin
2b56bb498f Update Ranch to 0.8.0 2013-04-03 13:47:12 +02:00
Loïc Hoguin
e16fae1196 Update Ranch to 0.6.2 2013-03-06 20:19:15 +01:00
Adam Cammack
88414e36b4 Add an example of onresponse hooks
Also fix the guide entry on hooks.
2013-03-01 19:54:30 -06:00
Adam Cammack
52a181347c Add an SSL example 2013-03-01 16:43:19 -06:00
Loïc Hoguin
d305527e88 Merge branch 'eventsource_example' of git://github.com/acammack/cowboy 2013-02-16 15:11:56 +01:00
Loïc Hoguin
39af3010cb Merge branch 'web_server_example' of git://github.com/acammack/cowboy 2013-02-16 14:39:15 +01:00
Adam Cammack
a302fe5007 Add EventSource example
Port from extend/cowboy_examples.
2013-02-16 02:26:32 -06:00
Adam Cammack
f112cdf643 Add a web server example
Explore re-routing in middleware.
2013-02-16 02:21:54 -06:00
Adam Cammack
a9294e0f50 Improve pastebin example
Reject more malicious paths.
2013-02-16 02:13:19 -06:00
Adam Cammack
f9dd3c9e54 Add a REST example that streams its response 2013-02-12 09:44:26 -06:00
Adam Cammack
09f1a8d55b Add an example with custom middleware 2013-02-09 13:54:08 -06:00
Loïc Hoguin
6549f68d49 Fix examples links
Thanks to grass on IRC for the heads up.
2013-02-09 16:05:23 +01:00
Loïc Hoguin
574c3d4900 Improve Websocket example 2013-02-09 15:38:35 +01:00
Loïc Hoguin
efbd913326 Merge branch 'add_rest_example' of git://github.com/acammack/cowboy 2013-02-07 18:37:15 +01:00
Adam Cammack
d7b83db92e Add a more involved REST example
A pastebin type application that can optionally highlight the output as
both text and HTML.
2013-02-07 11:00:26 -06:00
Adam Cammmack
fbdd3af63e Improve basic_auth example
Some web browsers will now prompt for user name and password
2013-02-06 21:06:39 -06:00
Yurii Rashkovskii
b69903435e Elixir hello world example 2013-02-06 14:08:49 -07:00
Loïc Hoguin
f96e20aef7 Rename example 'static' to 'static_world' to avoid confusion 2013-01-30 22:13:31 +01:00
Loïc Hoguin
cc52343e9b Merge branch 'websocket-example' of https://github.com/pvieytes/cowboy 2013-01-30 14:57:25 +01:00
Pablo Vieytes
b8a0a8963b add websocket example 2013-01-30 10:11:39 +01:00
Loïc Hoguin
f710ac86f8 Merge branch 'feature_basic_auth' of https://github.com/ivlis/cowboy 2013-01-29 22:20:59 +01:00
Ivan Lisenkov
54c6d3fa3a Implement authorization header parsing
Basic HTTP authorization according to RFC 2617 is implemented.
Added an example of its usage with REST handler.
2013-01-30 00:30:05 +04:00
Loïc Hoguin
ab0699ab29 Make examples use the new routing 2013-01-29 14:47:17 +01:00
Loïc Hoguin
ca98a86b30 Add HTML5 Video Example to the static example 2013-01-22 17:19:39 +01:00
Loïc Hoguin
647e95aed1 Replace terminate/2 with terminate/3, adding a Reason
This should have been done a *long* time ago, back when I initially
added Websocket support. This is the first part of two in improving
loop handler support with regards to socket closure.

Reason may include: {normal, shutdown} for the most normal shutdown,
{normal, timeout} for a loop handler timeout shutdown, or {error, _}
if an error occured.
2013-01-22 02:34:18 +01:00
Loïc Hoguin
82de4254dd Make cowboy_req:has_body/1 return boolean()
This makes it similar to the other has_* functions.
2013-01-19 17:20:35 +01:00
Loïc Hoguin
01f57ad65d Add optional automatic response body compression
This behavior can be enabled with the `compress` protocol option.
See the `compress_response` example for more details.

All tests are now ran with and without compression for both HTTP
and HTTPS.
2013-01-07 22:42:16 +01:00
Unix1
33461ecdbd Fix examples to follow new env tuple standard
This brings examples in line with the recent Middleware change.
2013-01-05 19:19:14 -08:00
Loïc Hoguin
a07d063fd8 Add cookie example 2012-12-20 14:40:22 +01:00
Loïc Hoguin
1851032482 Improve Markdown for the examples README 2012-12-14 10:50:26 +01:00
Loïc Hoguin
db6b1596ae Make a few more missing headers lowercase 2012-12-05 13:43:25 +01:00
Loïc Hoguin
160063497c Start crypto also in the examples and documentation 2012-10-11 20:52:29 +02:00
Loïc Hoguin
7b3d9943a9 Merge branch 'dbmercer-patch-1' of git://github.com/dbmercer/cowboy.git 2012-10-11 20:48:29 +02:00
dbmercer
b5fdf02af0 Modified static example to send appropriate MIME type
Modified the static example in the examples subdirectory
to use the mimetypes application to determine the appropriate
MIME type to send down the wire in the HTTP headers of the reply.
2012-10-11 20:47:35 +02:00
Loïc Hoguin
642a8f73c9 Fix Vary header, was wrongly named Variances previously 2012-10-11 20:44:53 +02:00