aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2015-08-07Use 'Connection' header only when necessaryAlexey Lebedeff
Fixes #839 when 'Connection: Keep-Alive' wasn't sent in a HTTP/1.0 response. Now the usage of 'Connection' header is consistent with current protocol version: when this header is not specified explicitly in the response, HTTP/1.0 implies 'Connection: close' and HTTP/1.1 implies 'Connection: Keep-Alive'. So if current 'Connection' value matches the default value of current protocol, we won't state obvious fact in the response; and vice versa. Amended to fix and improve tests, and revert the variable name change from HTTP11Headers to StdHeaders. I think it's still good to leave it as is because it's not really a standard header for HTTP/1.0, and it's gone from HTTP/2 entirely.
2015-07-27Add optional callbacksLoïc Hoguin
Mostly useful for REST, which has a ton. This is an initial commit, it still needs to be tested, but it's time to sleep.
2015-07-27Add spec to silence a Dialyzer warningLoïc Hoguin
Yes I know the function never returns. :-)
2015-07-27Use map syntax instead of maps:put/3Loïc Hoguin
2015-07-27Use erlang:monotonic_time instead of os:timestampLoïc Hoguin
Avoids unnecessary calculations.
2015-07-27Use the new unique_integer function to generate IDsLoïc Hoguin
In the eventsource example.
2015-07-27CONTRIBUTING additionsLoïc Hoguin
[ci skip]
2015-07-25Merge branch 'use-https' of https://github.com/ahf/cowboyLoïc Hoguin
2015-07-25Merge branch 'master' of https://github.com/jmccaughey/cowboyLoïc Hoguin
2015-07-25Update the CONTRIBUTING fileLoïc Hoguin
Looks like I pushed too early in the previous commit. Oops!
2015-07-23Fix .app module listLoïc Hoguin
cowboy_stream_h isn't in the repository yet.
2015-07-23Update gitignoreLoïc Hoguin
Let's try this [ci skip] stuff.
2015-07-22Fix autobahn test suite report link when used in CILoïc Hoguin
2015-07-22Add autobahn test suite output to the consoleLoïc Hoguin
2015-07-22Add support for Autobahn test suite for CircleCI buildsLoïc Hoguin
2015-07-22Experiment with a Dialyzer step for CircleCILoïc Hoguin
2015-07-21Fix ci-prepare when OTP builds existLoïc Hoguin
2015-07-21Add logs/ as CircleCI artifactLoïc Hoguin
To be kept after the run ends.
2015-07-21Don't ignore failure when doing 'make ci'Loïc Hoguin
The best way to use 'make ci' is 'make -k ci', then it will complete its run even if a version fails, and still exit with an error code.
2015-07-21Add caching of OTP builds for CircleCILoïc Hoguin
Unfortunately not seeing how I can try it other than committing the file... Oh well, polluting the logs!
2015-07-21Don't call xdg-open at the end of CILoïc Hoguin
2015-07-21Update erlang.mk and remove .app.srcLoïc Hoguin
Everything is now directly generated from the Makefile. Also properly update dependencies.
2015-07-21Experiment with CircleCILoïc Hoguin
2015-07-05Use HTTPS dependencies when using RebarAlexander Færøy
2015-06-12Fix compilation error due to previous commitLoïc Hoguin
Ah, conference commits.
2015-06-11Add HTTP/2 support preview2.0.0-pre.2Loïc Hoguin
This commit is not only an early preview of HTTP/2, it is an early preview of the new Cowboy architecture that will be presented tomorrow in my talk. If you have found it before the talk, great! It's not complete so you better go watch the talk anyway.
2015-05-29expect header parses to an atom (continue)jmccaughey
2015-05-07Exit with exit/1 on handler exception and include class in reasonJames Fish
2015-05-06Use the most recent state on error in cowboy_restLoïc Hoguin
2015-05-06Fix a compile error introduced in previous commitLoïc Hoguin
2015-05-06Dialyzer fixes in cowboy_clockLoïc Hoguin
This is what I get for merging blindly!
2015-05-06Add an index.html that is also served statically as the default for /David N. Welton
2015-05-06Merge branch 'patch-2' of https://github.com/egobrain/cowboyLoïc Hoguin
2015-05-06added a comment for non-obvious erlang:cancel_timerAlex Kovalev
2015-05-06fixed cowboy_clock inbox overflow if system clock was changedAlex Kovalev
2015-05-06Update Cowlib to 1.3.0Juan Puig
2015-05-05Add rfc7230 test suite and update others to recent GunLoïc Hoguin
This is a large commit. The rfc7230 test suite adds many tests from the RFC7230 document. Gun has been updated quite a bit recently, which broke the Cowboy suites. This is now fixed with this commit. A new hook onfirstrequest has been added. It was very useful during debugging of the test suites. The initial process code has changed a little; more changes are expected with the switch to maps for options.
2015-03-06Update Cowlib to 1.2.0; adds Websocket permessage-deflateLoïc Hoguin
The Websocket text frames should also be less resource intensive to validate now, with a binary concatenation avoided.
2015-02-17Fix reply/4 specYakov
There is wrong -spec of reply/4 function 3rd parametr type must be same as [#http_req spec](https://github.com/ninenines/cowboy/blob/master/src/cowboy_req.erl#L140)
2015-02-16Do not send empty chunksLoïc Hoguin
User code may sometimes send an empty value which gets understood by the client as being the end of the stream while this was not intended. Ignoring empty values allow making sure the stream isn't ended by mistake.
2015-02-16Add +warn_untyped_record to the build optionsLoïc Hoguin
2015-02-16Merge branch 'add_spdy_record_field_type' of https://github.com/sile/cowboyLoïc Hoguin
2015-02-16Merge branch 'master' of https://github.com/sstrigler/cowboyLoïc Hoguin
2015-02-16Fix cookie exampleLoïc Hoguin
2015-02-16Merge branch 'patch-1' of https://github.com/grahamrhay/cowboyLoïc Hoguin
2015-02-16Use cow_ws for the Websocket parsing codeLoïc Hoguin
Updates Cowlib to 1.1.0
2015-02-04Use cowlib for parsing headers; remove cowboy_httpLoïc Hoguin
2015-02-03Use cowlib masterLoïc Hoguin
2015-02-01Add a test with host ending in a dot in the routerLoïc Hoguin
2015-02-01Fix small detail in docsLoïc Hoguin