Age | Commit message (Collapse) | Author | |
---|---|---|---|
2013-01-29 | allow POST rest handling to specify path after accepting content | Tom Burdick | |
2013-01-29 | add patch support to cowboy_rest | Tom Burdick | |
2013-01-22 | Fix handler state change in cowboy_rest | Slava Yurin | |
2013-01-18 | Remove a few old @todo comments | Loïc Hoguin | |
2013-01-05 | Add cowboy_req:set_resp_body_fun/2 | Loïc Hoguin | |
This allows streaming a body without knowing the length in advance. Also allows {stream, StreamFun} response body in the REST code. | |||
2013-01-03 | Add middleware support | Loïc Hoguin | |
Middlewares allow customizing the request processing. All existing Cowboy project are incompatible with this commit. You need to change `{dispatch, Dispatch}` in the protocol options to `{env, [{dispatch, Dispatch}]}` to fix your code. | |||
2012-12-13 | Make the arguments to error_logger more consistent | Andrew Thompson | |
The purpose of this patch is to make the arguments cowboy passes to error_logger more consistent. With this patch there's only 3 variations on the error_logger argument list; a 5 element list, an 8 element list and a 10 element list. In all cases, the first 3 arguments are the Module, Function and Arity of the function being called and the second-to-last argument is always the Request. Additionally, for lists longer than 5 elements, the last argument is always the stack-trace. The added consistency of the argument ordering makes it much easier to write code in lager's error_logger handler to catch these messages and write a pretty one-liner (while writing the full message to the crash.log). | |||
2012-12-11 | Fix charset not working properly for REST | Loïc Hoguin | |
2012-12-03 | Remove the dependency on httpd_util | Loïc Hoguin | |
Add the function cowboy_clock:rfc1123/1 that formats the given date to the RFC1123 format. | |||
2012-11-30 | Return a 400 error if the Accept header was incorrect | Loïc Hoguin | |
2012-11-29 | Add a better error message when user callbacks are not exported | Loïc Hoguin | |
2012-11-28 | Clarify error reports indicating they come from Cowboy | Loïc Hoguin | |
2012-11-28 | Merge branch 'master' of git://github.com/chancila/cowboy | Loïc Hoguin | |
2012-11-27 | charsets_provided in rest module to return [binary()] | Cristian Hancila | |
2012-11-27 | Cosmetic changes to various documentation files | Loïc Hoguin | |
2012-11-26 | Fix a small typo in the rest_init error message | Loïc Hoguin | |
2012-11-24 | Merge pull request #297 from puzza007/master | Loïc Hoguin | |
Correct spelling in rest callback name | |||
2012-11-16 | REST: Fix the status code sent if the content type isn't known | Loïc Hoguin | |
2012-11-10 | Convert headers to lowercase | Julian Squires | |
2012-10-25 | musnt is not the correct contraction of mustn't - use must_not instead | Paul Oliver | |
2012-10-13 | Clarify docs for known_methods and allowed_methods. | Josh Allmann | |
2012-10-11 | Fix Vary header, was wrongly named Variances previously | Loïc Hoguin | |
2012-09-29 | Add cowboy_req:get/2 and :set/2 private functions | Loïc Hoguin | |
They should not be used unless you have a very special need, which generally involves interacting with the internals of Cowboy. | |||
2012-09-21 | Don't use decode_packet/3 for parsing the headers | Loïc Hoguin | |
Header names are now binaries. Since header names are case insensitive they are all converted to lowercase. For example: <<"content-length">>. The max_line_length option was removed. Three new options have been added instead: * max_request_line_length (defaults to 4096) * max_header_name_length (defaults to 64) * max_header_value_length (defaults to 4096) | |||
2012-09-21 | Don't use decode_packet/3 for parsing the request-line | Loïc Hoguin | |
First step in making all methods and header names binaries to get rid of many inconsistencies caused by decode_packet/3. Methods are all binary now. Note that since they are case sensitive, the usual methods become <<"GET">>, <<"POST">> and so on. | |||
2012-09-17 | Remove http.hrl dependency in cowboy_rest | Loïc Hoguin | |
Only cowboy_protocol remaining now. | |||
2012-09-17 | Add a function to lock request responses instead of inlining | Loïc Hoguin | |
Just more cleanup in order to have req() opaque. | |||
2012-09-17 | Improve consistency of return types for cowboy_req API | Loïc Hoguin | |
The signature of parse_header, body_qs, multipart_data and the set_resp_* functions has changed. See the cowboy_req module edoc for more details. | |||
2012-09-16 | Add cowboy_req:delete_resp_header/2 | Loïc Hoguin | |
Both requested and better for making Req opaque. | |||
2012-09-16 | Introduce cowboy_req:host_url/1 to remove more duplicate code | Loïc Hoguin | |
2012-09-15 | Put the method in cowboy_rest's #state{} | Loïc Hoguin | |
2012-09-15 | Introduce cowboy_req:set_meta/3 to set request metadata | Loïc Hoguin | |
2012-09-15 | Add a cowboy_req:to_list/1 function | Loïc Hoguin | |
Removes a lot of duplicate code when printing error messages. | |||
2012-09-15 | Change type #http_req{} to cowboy_req:req() | Loïc Hoguin | |
This removes cowboy_static's dependency on http.hrl. | |||
2012-09-10 | Replace cowboy_req:path/1 with cowboy_req:raw_path/1 | Loïc Hoguin | |
The latter is much more useful than the former, which ends up being removed. | |||
2012-09-10 | Replace cowboy_req:host/1 with cowboy_req:raw_host/1 | Loïc Hoguin | |
The latter is much more useful than the former, which ends up being removed. | |||
2012-08-27 | Rename cowboy_http_rest to cowboy_rest | Loïc Hoguin | |