Age | Commit message (Collapse) | Author | |
---|---|---|---|
2012-02-01 | Fix a typo that prevented protocol options upgrades | Loïc Hoguin | |
2012-01-31 | Remove call to queue:len/1 | Paul Oliver | |
queue:len/1 is O(len(Q)) queue:out/1 is O(1) amortized, O(len(Q)) worst case Replace with a pattern match | |||
2012-01-31 | Use queue() for managing wait queues in cowboy_listener | Loïc Hoguin | |
The previous solution was retrieving the last put connection and wasn't a real queue, so this solution should improve the overall latency under load. | |||
2012-01-31 | Refactor cowboy_listener for more consistency | Loïc Hoguin | |
2012-01-31 | Add cowboy:get_protocol_options/1 and cowboy_set_protocol_options/2 | Loïc Hoguin | |
This allows any application to upgrade the protocol options without having to restart the listener. This is most useful to update the dispatch list of HTTP servers, for example. The upgrade is done at the acceptor level, meaning only new connections receive the new protocol options. | |||
2012-01-30 | Move max_connections check directly inside cowboy_listener | Loïc Hoguin | |
This is a big change in the internal cowboy API. This should not have any impact on existing applications as only the acceptor is expected to use these API calls. The function cowboy_listener:wait/3 has been removed. max_connections checking now occurs directly in cowboy_listener:add_connection/3. If the pool is full and the acceptor has to wait, then it doesn't return, waiting for a free space to be available. To accomodate these changes, it is now cowboy_listener that will inform the new connection that it is ready by sending {shoot, self()}. This should be a great improvement to the latency of responses as there is one less message to wait for before the request process can do its work. Overall the performance under heavy load should also be improved as we greatly reduce the number of messages sent between the acceptor and the listener process. | |||
2012-01-26 | Handle delete better when no delete_resource function is implemented | Tom Burdick | |
2012-01-23 | Fix a case where request body wouldn't get cleaned up on keepalive | Loïc Hoguin | |
The body was still in the buffer that's being used for the next request and was thus used as a request, causing errors. | |||
2012-01-23 | Rename the type http_status/0 to cowboy_http:status/0 | Loïc Hoguin | |
2012-01-23 | Rename the type http_header/0 to cowboy_http:header/0 | Loïc Hoguin | |
At the same time rename http_headers/0 to cowboy_http:headers/0. | |||
2012-01-23 | Rename the type http_version/0 to cowboy_http:version/0 | Loïc Hoguin | |
2012-01-23 | Rename the type http_uri/0 to cowboy_http:uri/0 | Loïc Hoguin | |
2012-01-23 | Rename the type http_method/0 to cowboy_http:method/0 | Loïc Hoguin | |
Exported types are much better than include files. | |||
2012-01-23 | Fix typespecs for calendar:datetime/0 in cowboy_http_static | Loïc Hoguin | |
2012-01-23 | Add {halt, Req, State} return value to most REST callbacks | Loïc Hoguin | |
Excluding generate_etag, last_modified, expires and variances. | |||
2012-01-23 | Rename a lot of HandlerState2 variables to HandlerState | Loïc Hoguin | |
2012-01-23 | Improve the return value for cowboy_http_rest:upgrade/4 | Loïc Hoguin | |
2012-01-23 | Merge branch 'multipart' of https://github.com/nox/cowboy | Loïc Hoguin | |
Conflicts: src/cowboy_http_req.erl test/http_SUITE.erl | |||
2012-01-23 | Add multipart support | Anthony Ramine | |
2012-01-12 | Welcome to new developments with 0.5.0 | Loïc Hoguin | |
2012-01-09 | Update version to 0.4.00.4.0 | Loïc Hoguin | |
2012-01-09 | Make REST handlers' put_resource accept true or false return values | Loïc Hoguin | |
Followup to 0bb23f2400ed0b65834913c8522a978d986f1f92. As discussed in #119. | |||
2012-01-07 | Add etag option to cowboy_http_static handler. | Magnus Klaar | |
2012-01-06 | Make REST handlers' process_post accept true or false return values | Loïc Hoguin | |
They should return true when it has been processed successfully, or false otherwise, in which case a 500 error is sent. Fixes #119. | |||
2012-01-06 | Fix handler crashes handling | Loïc Hoguin | |
We try to send a 500 error only if we didn't send the response headers yet. If they were, then we have no way to be sure the response was fully sent, nor should we assume anything about how this will be handled client-side, so we do nothing more and in both cases close the connection. | |||
2012-01-06 | Move the ensure_response call before ensure_body_processed | Loïc Hoguin | |
We want to reply as soon as possible. | |||
2012-01-05 | Add test and doc for content types function. | Magnus Klaar | |
2012-01-04 | inet_address:parse/1 does not accept binaries as an input, only strings | Yurii Rashkovskii | |
2012-01-03 | Merge branch 'static-handler-split' of https://github.com/klaar/cowboy | Loïc Hoguin | |
2012-01-03 | Add note on async threads to cowboy_http_static. | Magnus Klaar | |
2011-12-28 | Add built-in cowboy_http_static handler. | Magnus Klaar | |
2011-12-28 | Add cowboy_http_req:set_resp_body_fun/3 to rest | Magnus Klaar | |
2011-12-28 | Add cowboy_http_req:set_resp_body_fun/3. | Magnus Klaar | |
2011-12-28 | Add cowboy_http_req:transport/1 function. | Magnus Klaar | |
2011-12-26 | Use calendar date and time types exported since R14B04 | Loïc Hoguin | |
Removes the cowboy_clock:date/0, time/0 and datetime/0 exported types. | |||
2011-12-22 | Add 'Upgrade' header parsing | Loïc Hoguin | |
Not parsing product tokens, I don't see much point. | |||
2011-12-22 | Remove outdated @todo notes and update another | Loïc Hoguin | |
2011-12-22 | Add a max_keepalive HTTP protocol option | Loïc Hoguin | |
Based on the patch by Louis-Philippe Gauthier. | |||
2011-12-22 | Websocket control frames payload length must be lower than 126 bytes | Loïc Hoguin | |
2011-12-19 | create_path now returns a path, not an URI | Loïc Hoguin | |
Also add the new 'put_path' metadata information to the request before entering the put_resource step (which proceeds to call content_types_accepted and then the chosen content type's callback, which is expected to use the 'put_path' value as the path to the new resource instead of the original request path, because it may have been changed by the create_path call. | |||
2011-12-19 | Add meta/2 and meta/3 to cowboy_http_req to save useful protocol information | Loïc Hoguin | |
* cowboy_http_protocol now defines 'websocket_version' as metadata. * cowboy_http_rest now defines 'media_type', 'language', 'charset' as metadata. | |||
2011-12-19 | Add missing p_headers and cookies to compacted values | Loïc Hoguin | |
2011-12-16 | update type of resp_body to iodata | Magnus Klaar | |
resp_body is set by cowboy_http_req:set_resp_body/2 which accepts the input type iodata(). Update the resp_body field to use the same type. Also update the cowboy_http_req:has_resp_body/2 function to use the iolist_size/1 which works with both binary() and iolist() values instead of the byte_size/1 function which only works with binary() values. | |||
2011-12-15 | Fix a dialyzer warning | Loïc Hoguin | |
2011-12-15 | Reply status 400 if we receive an unexpected value or error for headers | Loïc Hoguin | |
2011-12-15 | Add cowboy:accept_ack/1 for a cleaner handling of the shoot message | Loïc Hoguin | |
2011-12-12 | Merge branch 'variances-fix' of github.com:klaar/cowboy | Loïc Hoguin | |
2011-12-12 | Fixes match_media_type in cowboy_http_rest | Loïc Hoguin | |
Based on the patch from Heinz N. Gies. The main change is that his patch accept values such as */plain which we do not want. Fixes issue #105. | |||
2011-12-12 | Merge branch 'hipe-compilation-fix' of github.com:klaar/cowboy | Loïc Hoguin | |
2011-12-12 | Merge branch 'master' of github.com:talentdeficit/cowboy | Loïc Hoguin | |