Age | Commit message (Collapse) | Author | |
---|---|---|---|
2012-10-04 | The onresponse hook now receives 4 arguments, including the body | Loïc Hoguin | |
We do not always provide the body however. It is not available when using chunked replies, or when using set_resp_body_fun. | |||
2012-09-29 | Add max_headers option | Loïc Hoguin | |
It is only enforced when Cowboy needs to wait for more data. Also fix a few types and a few status codes. | |||
2012-09-29 | Add missing options in the cowboy_protocol documentation | Loïc Hoguin | |
2012-09-29 | Remove the urldecode cowboy_protocol option | Loïc Hoguin | |
This allows inconsistent behavior and is not used enough to be supported. | |||
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-26 | Optimize cowboy_protocol | Loïc Hoguin | |
* #state{} changes are avoided where possible * #state{} is now smaller and use less memory * the Req object is created only after the whole request is parsed * parsing makes use of a single binary match context * external calls are avoided in the critical path * URL fragment is now extracted properly (retrieval API next commit) * argument orders to local functions modified to avoid extra operations * dispatching waits as long as possible before tokenizing host/path * handler opts are no longer shown in the error messages except in init The code may not look as beautiful as it was before. But it really is, for parsing code. The parsing section of the file may be skipped if your eyes start to burn. | |||
2012-09-23 | Extract the buffer out of the #state{} in cowboy_protocol | Loïc Hoguin | |
This reduces the number of operations done each time the buffer changes. | |||
2012-09-23 | Improve state reset between requests | Loïc Hoguin | |
2012-09-23 | Use binary:match/2 instead of binary:split/2 | Loïc Hoguin | |
The former is a BIF while the latter is not. | |||
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 | Add types for onrequest and onresponse funs | Loïc Hoguin | |
2012-09-17 | Replace many proplists:get_value/{2,3} calls by BIFs | Loïc Hoguin | |
Originally suggested by Roberto Ostinelli. | |||
2012-09-17 | Include the eunit file only if TEST is defined | Loïc Hoguin | |
2012-09-17 | Add the private get_connection/1 function used by cowboy_protocol | Loïc Hoguin | |
This removes cowboy_protocol's dependency on http.hrl! | |||
2012-09-17 | Add the private get_buffer/1 function used by cowboy_protocol | Loïc Hoguin | |
2012-09-17 | Add the private get_resp_state/1 function used by cowboy_protocol | Loïc Hoguin | |
2012-09-17 | Add the private set_bindings/4 function used by cowboy_protocol | Loïc Hoguin | |
2012-09-17 | Add the private set_buffer/2 function used by cowboy_protocol | Loïc Hoguin | |
2012-09-17 | Add the private add_header/3 function used by cowboy_protocol | Loïc Hoguin | |
2012-09-17 | Add the private set_connection/2 function used by cowboy_protocol | Loïc Hoguin | |
2012-09-17 | Add the private function set_host/4 used by cowboy_protocol | Loïc Hoguin | |
2012-09-17 | Add a private cowboy_req function to create a Req object | Loïc Hoguin | |
Private means you must not used it. It's meant for internal use. | |||
2012-09-17 | Use cowboy_req:version/1 in cowboy_protocol where applicable | Loïc Hoguin | |
More cleanup towards making cowboy_req:req() opaque. | |||
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-15 | Use skip_body directly between requests | Loïc Hoguin | |
There's no need for more complex logic now that we have the API for it. | |||
2012-09-15 | Remove duplicate code for ensure_response | 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-15 | Separate multipart from body_state | Loïc Hoguin | |
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_websocket to cowboy_websocket | Loïc Hoguin | |
2012-08-27 | Rename cowboy_http_req to cowboy_req | Loïc Hoguin | |
2012-08-27 | Rename cowboy_http_protocol to cowboy_protocol | Loïc Hoguin | |
2012-08-27 | Switch to Ranch for connection handling | Loïc Hoguin | |
This is the first of many API incompatible changes. You have been warned. | |||
2012-05-23 | Update version to 0.6.00.6.0 | Loïc Hoguin | |
Also update the CHANGELOG and copyright years. | |||
2011-12-15 | Add cowboy:accept_ack/1 for a cleaner handling of the shoot message | Loïc Hoguin | |
2011-10-01 | Merge branch 'master' of https://github.com/hakvroot/cowboy | Loïc Hoguin | |
2011-09-30 | Add cowboy_protocol behaviour | Michiel Hakvoort | |