Age | Commit message (Collapse) | Author | |
---|---|---|---|
2013-03-06 | Check the length before reading the body in body/1 and body_qs/1 | rambocoder | |
2013-01-22 | Replace terminate/2 with terminate/3, adding a Reason | Loïc Hoguin | |
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-19 | Make cowboy_req:has_body/1 return boolean() | Loïc Hoguin | |
This makes it similar to the other has_* functions. | |||
2012-08-27 | Rename cowboy_http_req to cowboy_req | Loïc Hoguin | |
2012-04-01 | Add chunked transfer encoding support and rework the body reading API | Loïc Hoguin | |
Introduces 3 low level functions and updates the existing higher levels functions. The new primitives are has_body/1, body_length/1 and stream_body/1. In addition to that, a helper function init_stream/4 has been added. Streaming a body implies to decode the Transfer-Encoding and Content-Encoding used for the body. By default, Cowboy will try to figure out what was used and decode them properly. You can override this if you want to disable this behavior or simply support more encodings by calling the init_stream/4 function before you start streaming the body. |