Age | Commit message (Collapse) | Author | |
---|---|---|---|
2012-12-03 | Allow passing the Req and an updated Opts when upgrading protocols | Loïc Hoguin | |
2012-12-02 | Add more frame types available in websocket replies | Loïc Hoguin | |
We can now reply empty close, ping and pong frames, or close frames with a payload. This means that we can send a frame and then close the connection in a single operation. If a close packet is sent, the connection is closed immediately, even if there was frames that remained to be sent. Cowboy will silently drop any extra frames in the list given as a reply. | |||
2012-12-01 | Return full packet as multipart body if possible | Magnus Klaar | |
2012-12-01 | Use Transport:sendfile/2 from Ranch | Loïc Hoguin | |
This removes a bunch of unneeded code, including code that was made for R14 which we don't support anymore. Note that the dependency on Ranch was updated, so you will need to update Ranch for the new code to work. | |||
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-29 | static: Allow passing the mimetype fun as a {M, F} tuple | Loïc Hoguin | |
2012-11-28 | Update the cowboy_websocket_handler specs | Loïc Hoguin | |
We can send many payloads at once. | |||
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 | Fixed onrequest path-related issue | serge | |
2012-11-27 | Merge branch 'fix/websocket-check-error-on-send' of ↵ | Loïc Hoguin | |
git://github.com/tillitech/cowboy | |||
2012-11-27 | Cosmetic changes to various documentation files | Loïc Hoguin | |
2012-11-27 | Do not try to keep-alive when using HTTP/1.0 | Loïc Hoguin | |
2012-11-27 | Check for errors when calling Transport:send in the websocket protocol | Ali Sabil | |
In some situations, the underlying socket might become "half-open" in which case the websocket will stay in a waiting state indefinitely. The detection of this state requires checking for errors when calling send. | |||
2012-11-27 | Merge branch '400_Bad_Request' of git://github.com/blinkov/cowboy | Loïc Hoguin | |
2012-11-27 | Fix dispatch documentation with regards to the <<"*">> path | Loïc Hoguin | |
2012-11-26 | Merge branch 'master' of git://github.com/josevalim/cowboy | 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-13 | Add a few more infos to the .app.src for private use | Loïc Hoguin | |
2012-11-10 | Convert headers to lowercase | Julian Squires | |
2012-10-27 | Return "400 Bad Request" instead of crashing process on incorrect queries ↵ | Ivan Blinkov | |
like /%qq | |||
2012-10-25 | musnt is not the correct contraction of mustn't - use must_not instead | Paul Oliver | |
2012-10-25 | Mimetype lookup expects lowercase extensions | Loïc Hoguin | |
We handle extensions in a case-insensitive manner when looking for a mimetype for a file. Extensions are thus lowered. | |||
2012-10-19 | Fix examples in cowboy_static edoc | Loïc Hoguin | |
2012-10-13 | Clarify docs for known_methods and allowed_methods. | Josh Allmann | |
2012-10-11 | Do not remove duplicated Set-Cookie entries | José Valim | |
This commit closes #195, closes #199, closes #246. | |||
2012-10-11 | Allow websocket handlers to reply more than one frame | Loïc Hoguin | |
Instead of returning {text, Data}, you can now return [{text, Data}, {text, Data2}, ...]. | |||
2012-10-11 | Fix Vary header, was wrongly named Variances previously | Loïc Hoguin | |
2012-10-11 | Add crypto into the required applications | Loïc Hoguin | |
As suggested by @prof3ta. | |||
2012-10-11 | Cleanup cowboy_req:parse_header/3 | Loïc Hoguin | |
As suggested by @yrashk. | |||
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-10-04 | Fix the parsing of the Connection header | Loïc Hoguin | |
2012-09-29 | Remove a redundant function | Loïc Hoguin | |
2012-09-29 | Merge pull request #254 from billiob/master | Loïc Hoguin | |
fix typo in doc | |||
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 | Fix a small edoc issue | 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-27 | Optimize Connection header parsing | Loïc Hoguin | |
Still optimizing the critical path. Removes cowboy_http:connection_to_atom/1. | |||
2012-09-27 | Add cowboy_req:fragment/1 | Loïc Hoguin | |
Allows retrieving the request URI fragment (the #fragment part). | |||
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-26 | Use a single Transport:send/2 call to send the reply if possible | Loïc Hoguin | |
This gives a huge boost in performance when replies are small. | |||
2012-09-24 | Remove a '++' use when replying | Loïc Hoguin | |
2012-09-24 | Removal of binary:split from cowboy_dispatcher and small optimizations | Loïc Hoguin | |
The internal host_tokens value now has host tokens in reverse order compared to before. This allows us to remove one lists:reverse call. | |||
2012-09-24 | Use binary:match/2 instead of binary:split/2 in cowboy_dispatcher | Loïc Hoguin | |
Didn't replace everything, just the ones that didn't use the global option. Also removed a couple now useless code paths. |