aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2012-11-13Add a few more infos to the .app.src for private useLoïc Hoguin
2012-11-10Merge pull request #315 from tokenrove/correct-header-caseLoïc Hoguin
Convert headers to lowercase
2012-11-10Convert headers to lowercaseJulian Squires
2012-10-25Mimetype lookup expects lowercase extensionsLoïc Hoguin
We handle extensions in a case-insensitive manner when looking for a mimetype for a file. Extensions are thus lowered.
2012-10-19Fix examples in cowboy_static edocLoïc Hoguin
2012-10-15Merge pull request #288 from j0sh/masterLoïc Hoguin
Clarify docs for known_methods and allowed_methods.
2012-10-15Add Introduction chapter to the guideLoïc Hoguin
2012-10-13Clarify docs for known_methods and allowed_methods.Josh Allmann
2012-10-11Allow websocket handlers to reply more than one frameLoïc Hoguin
Instead of returning {text, Data}, you can now return [{text, Data}, {text, Data2}, ...].
2012-10-11Start crypto also in the examples and documentationLoïc Hoguin
2012-10-11Merge branch 'dbmercer-patch-1' of git://github.com/dbmercer/cowboy.gitLoïc Hoguin
2012-10-11Modified static example to send appropriate MIME typedbmercer
Modified the static example in the examples subdirectory to use the mimetypes application to determine the appropriate MIME type to send down the wire in the HTTP headers of the reply.
2012-10-11Fix Vary header, was wrongly named Variances previouslyLoïc Hoguin
2012-10-11Fix the autobahn test suiteLoïc Hoguin
All tests still pass! (Excluding UTF-8 of course.)
2012-10-11Add crypto into the required applicationsLoïc Hoguin
As suggested by @prof3ta.
2012-10-11Cleanup cowboy_req:parse_header/3Loïc Hoguin
As suggested by @yrashk.
2012-10-05Update ROADMAP.mdLoïc Hoguin
2012-10-05Add CONTRIBUTING.md fileLoïc Hoguin
2012-10-05Update CHANGELOGLoïc Hoguin
2012-10-04The onresponse hook now receives 4 arguments, including the bodyLoï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-04Fix the parsing of the Connection headerLoïc Hoguin
2012-10-02Merge pull request #272 from seryl/fix_readme_relative_linksLoïc Hoguin
Fixing relative links
2012-10-01Fixing relative linksJosh Toft
2012-10-01Merge pull request #271 from seryl/rest_to_readmeLoïc Hoguin
Add rest_hello_world link to examples README
2012-10-01Add rest_hello_world link to examples READMEJosh Toft
2012-10-01Merge pull request #269 from seryl/patch-1Loïc Hoguin
Fixing recursive examples README
2012-10-01Make example README's more thoroughJosh Toft
2012-09-29Remove a redundant functionLoïc Hoguin
2012-09-29Merge pull request #254 from billiob/masterLoïc Hoguin
fix typo in doc
2012-09-29Add max_headers optionLoï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-29Add missing options in the cowboy_protocol documentationLoïc Hoguin
2012-09-29Fix a small edoc issueLoïc Hoguin
2012-09-29Remove the urldecode cowboy_protocol optionLoïc Hoguin
This allows inconsistent behavior and is not used enough to be supported.
2012-09-29Add cowboy_req:get/2 and :set/2 private functionsLoï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-27Update CHANGELOGLoïc Hoguin
2012-09-27Optimize Connection header parsingLoïc Hoguin
Still optimizing the critical path. Removes cowboy_http:connection_to_atom/1.
2012-09-27Add cowboy_req:fragment/1Loïc Hoguin
Allows retrieving the request URI fragment (the #fragment part).
2012-09-26Optimize cowboy_protocolLoï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-26Use a single Transport:send/2 call to send the reply if possibleLoïc Hoguin
This gives a huge boost in performance when replies are small.
2012-09-26Update Ranch to latest commitLoïc Hoguin
2012-09-24Remove a '++' use when replyingLoïc Hoguin
2012-09-24Removal of binary:split from cowboy_dispatcher and small optimizationsLoï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-24Use binary:match/2 instead of binary:split/2 in cowboy_dispatcherLoïc Hoguin
Didn't replace everything, just the ones that didn't use the global option. Also removed a couple now useless code paths.
2012-09-23Extract the buffer out of the #state{} in cowboy_protocolLoïc Hoguin
This reduces the number of operations done each time the buffer changes.
2012-09-23Use binary:match/2 instead of binary:split/2 in cowboy_httpLoïc Hoguin
Also fix a bug introduced in a previous commit.
2012-09-23Improve state reset between requestsLoïc Hoguin
2012-09-23Use binary:match/2 instead of binary:split/2Loïc Hoguin
The former is a BIF while the latter is not.
2012-09-21Update CHANGELOGLoïc Hoguin
2012-09-21Make multipart part headers binary lowercaseLoïc Hoguin
Here we do not remove decode_packet yet, we just lowercase the header name and transform it into a binary if needed, to fix the consistency issue.
2012-09-21Don't use decode_packet/3 for parsing the headersLoï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)