0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 20:30:23 +00:00
Small, fast, modern HTTP server for Erlang/OTP.
Find a file
Fred Hebert b10b34a8f2 Support ad-hoc keep-alive for HTTP/1.0 Clients
Only go for keep-alive if they submit a 'connection: keep-alive' header
in the request, keep behaviour the same otherwise.

The new RFC 7230 (http://tools.ietf.org/html/rfc7230#section-6.3)
states:

    If the received protocol is HTTP/1.0, the "keep-alive" connection
    option is present, the recipient is not a proxy, and the recipient
    wishes to honor the HTTP/1.0 "keep-alive" mechanism, the
    connection will persist after the current response;

Even though clients are discouraged from doing so in Appendix A.1.2
(http://tools.ietf.org/html/rfc7230#appendix-A.1.2)
2014-07-14 10:11:03 -04:00
doc/src Drop R15 support 2014-07-12 14:19:29 +02:00
examples Update erlang.mk and update paths to start the release 2014-06-30 10:14:05 +02:00
src Support ad-hoc keep-alive for HTTP/1.0 Clients 2014-07-14 10:11:03 -04:00
test Support ad-hoc keep-alive for HTTP/1.0 Clients 2014-07-14 10:11:03 -04:00
.gitignore Provide installable man pages 2014-07-06 13:10:35 +02:00
all.sh Drop R15 support 2014-07-12 14:19:29 +02:00
AUTHORS Update AUTHORS 2014-06-10 12:02:58 +02:00
CHANGELOG.md Update CHANGELOG and ROADMAP 2014-06-10 12:00:30 +02:00
CONTRIBUTING.md Add note about SSL tests requiring R16B01 2013-08-31 10:24:11 +02:00
erlang.mk Provide installable man pages 2014-07-06 13:10:35 +02:00
LICENSE Update copyright years 2014-02-06 19:57:23 +01:00
Makefile Provide installable man pages 2014-07-06 13:10:35 +02:00
README.md Provide installable man pages 2014-07-06 13:10:35 +02:00
rebar.config Update Ranch to 0.10.0 2014-06-10 11:36:55 +02:00
ROADMAP.md Small addition to the ROADMAP 2014-07-12 12:11:24 +02:00

Cowboy

Cowboy is a small, fast and modular HTTP server written in Erlang.

Goals

Cowboy aims to provide a complete HTTP stack in a small code base. It is optimized for low latency and low memory usage, in part because it uses binary strings.

Cowboy provides routing capabilities, selectively dispatching requests to handlers written in Erlang.

Because it uses Ranch for managing connections, Cowboy can easily be embedded in any other application.

No parameterized module. No process dictionary. Clean Erlang code.

Sponsors

The SPDY implementation was sponsored by LeoFS Cloud Storage.

The project is currently sponsored by Kato.im.

Online documentation

Offline documentation

  • While still online, run make docs
  • Function reference man pages available in doc/man3/ and doc/man7/
  • Run make install-docs to install man pages on your system
  • Full documentation in Markdown available in doc/markdown/
  • Examples available in examples/

Getting help