Age | Commit message (Collapse) | Author | |
---|---|---|---|
2013-04-26 | Add default CTP: "text/html" maps to `to_html` | Seletskiy Stanislav | |
2013-04-20 | REST is no longer experimental | Loïc Hoguin | |
2013-04-20 | Fix POST behavior in REST | Loïc Hoguin | |
The resource accept callback can trigger the following responses: * returns true, new resource, location header set: 201 * returns true, otherwise: 200, 204 or 300 (depends on body) * returns false: 422 * returns URL, new resource: 201 * returns URL, otherwise: 303 | |||
2013-04-15 | Build Allow header with a binary comprehension | Loïc Hoguin | |
2013-04-12 | Add default operations for OPTIONS method in REST | Loïc Hoguin | |
It defaults to setting the Allow header to "HEAD, GET, OPTIONS". | |||
2013-04-12 | Don't receive data from the socket only once in the loop handler | Loïc Hoguin | |
2013-04-12 | Ensure we can fetch the body in the info/3 function of loop handlers | Loïc Hoguin | |
2013-04-12 | rest: reject incorrect content-type header | Vladimir Dronnikov | |
2013-04-12 | missing comma in documentation of static examples | Andrzej Sliwa | |
2013-04-11 | Merge branch 'iolist_path_support' of git://github.com/tsloughter/cowboy | Loïc Hoguin | |
2013-04-11 | Merge branch 'fix/sendfile-error-handling' of git://github.com/soundrop/cowboy | Loïc Hoguin | |
2013-04-11 | Don't accept TRACE or CONNECT methods by default in REST | Loïc Hoguin | |
For the simple reason that the REST code does nothing about them. | |||
2013-04-11 | Remove process_post, post_is_create, create_path, created_path callbacks | Loïc Hoguin | |
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 | Remove cowboy_req:peer_addr/1 | Loïc Hoguin | |
This kind of function is highly dependent on the proxy used, therefore parsing was added for x-forwarded-for instead and we just let users write the function that works for them. The code can be easily extracted if anyone was using the function. | |||
2013-04-11 | Parse the x-forwarded-for header as a list of tokens | Loïc Hoguin | |
2013-04-11 | Shorten the parse_header clauses | Loïc Hoguin | |
2013-04-11 | No need for fully qualified call to the same module | Loïc Hoguin | |
2013-04-09 | Switch the arguments to cowboy_req:stream_body/2 | Loïc Hoguin | |
Make them consistent with the rest of the module. | |||
2013-04-08 | Do not crash if connection times out while sending a file using sendfile | Ali Sabil | |
2013-04-03 | Update to 0.8.30.8.3 | Loïc Hoguin | |
2013-04-03 | Update Ranch to 0.8.0 | Loïc Hoguin | |
2013-04-02 | Replace init_stream/5 with stream_body/2 | Loïc Hoguin | |
This allows us to change the max chunk length on a per chunk basis instead of for the whole stream. It's also much easier to use this way even if we don't want to change the chunk size. | |||
2013-03-24 | add iolist support to route_match | Tristan Sloughter | |
2013-03-09 | Update to 0.8.20.8.2 | Loïc Hoguin | |
2013-03-06 | Merge branch 'check-body-length' of git://github.com/rambocoder/cowboy | Loïc Hoguin | |
2013-03-06 | Stop using binary:match in cowboy_protocol | Loïc Hoguin | |
It's been found slower than a custom equivalent to what we were using it for. As this is the critical path we prefer the custom solution. | |||
2013-03-06 | Check the length before reading the body in body/1 and body_qs/1 | rambocoder | |
2013-03-05 | Make streamed chunk size configurable | Loïc Hoguin | |
Defaults to a maximum of 1000000 bytes. Also standardize the te_identity and te_chunked decoding functions. Now they both try to read as much as possible (up to the limit), making body reading much faster when not using chunked encoding. | |||
2013-03-05 | Handle identity transfer-encoding when determining body length | Loïc Hoguin | |
2013-03-03 | Add '*' matcher for parameters | Slava Yurin | |
For get_type_provided: '*' will be match any parameters of media-range in "accept" header. If '*' matched, then '*' is replaced by the matching parameters. If Accept header is missing and '*' using, then in media_type in parameters will be '*' and reply content-type will be without any parameters. For content_types_accepted: '*' will be match any parameters in "content-type" header. | |||
2013-03-02 | Fix cowboy_router types | Loïc Hoguin | |
2013-03-01 | Make path check cross-platform and generally safer | Loïc Hoguin | |
2013-02-27 | Optimize cowboy_static:rest_init/2 | Loïc Hoguin | |
2013-02-27 | Remove extraneous newlines in cowboy_static | Loïc Hoguin | |
2013-02-27 | Fix an incorrect comment in cowboy_router | Loïc Hoguin | |
2013-02-22 | Fix to prevent loop handler awakening immediately after response sent | James Fish | |
If a loop handler sent a response (e.g. cowboy_req:chunked_reply/2,/3) and then returns {loop, Req, HandlerState, hibernate} it would have a {cowboy_req, resp_sent} message in its message queue. This message would cause the process to immediately awaken, so it is flushed before hibernation. | |||
2013-02-22 | Update to 0.8.10.8.1 | Loïc Hoguin | |
2013-02-21 | Added warn compile options. Fixed compile warnings. | Egobrain | |
2013-02-20 | Add cowboy:set_env/3 | Loïc Hoguin | |
2013-02-17 | Merge branch 'fix-handler-spec' of git://github.com/fishcakez/cowboy | Loïc Hoguin | |
2013-02-17 | Merge branch 'sub_protocol-behaviour' of git://github.com/fishcakez/cowboy | Loïc Hoguin | |
2013-02-17 | Fix {suspend, ...} specs to use atom() for function name | James Fish | |
2013-02-16 | Add sub protocol behaviour | James Fish | |
2013-02-15 | Make sure socket is passive once we've done with loop handler | Andrew Majorov | |
It is sometimes important to make a socket passive as it was initially and as it is expected to be by cowboy_protocol, right after we've done with loop handling. | |||
2013-02-14 | Properly pass the handler's state to websocket_terminate/3 on close | Loïc Hoguin | |
2013-02-14 | Merge branch 'has_body_improved' of git://github.com/0xAX/cowboy | Loïc Hoguin | |
2013-02-14 | Merge branch 'fix/websocket_callback_specs' of git://github.com/keynslug/cowboy | Loïc Hoguin | |
2013-02-14 | Merge branch 'native_compile' of git://github.com/acammack/cowboy | Loïc Hoguin | |
2013-02-14 | cowbot_req:has_body:/1 improved | 0xAX | |
2013-02-13 | Make cowboy_websocket.erl compile with +native | Adam Cammack | |
Worked until cccc0bc |