0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00
Small, fast, modern HTTP server for Erlang/OTP.
Find a file
Alexey Lebedeff 8c60dd6c1b Use 'Connection' header only when necessary
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-08-07 15:30:09 +02:00
doc/src Fix incorrect type in cowboy_static manual 2014-08-12 19:01:12 +02:00
examples Add an index.html that is also served statically as the default for / 2015-02-17 11:53:08 +01:00
src Use 'Connection' header only when necessary 2015-08-07 15:30:09 +02:00
test Use 'Connection' header only when necessary 2015-08-07 15:30:09 +02:00
.gitignore Provide installable man pages 2014-07-06 13:10:35 +02:00
all.sh Update to erlang.mk 1.0.0 2014-08-01 14:26:51 +02:00
AUTHORS Update AUTHORS 2014-11-07 14:40:21 +02:00
CHANGELOG.md Update CHANGELOG 2014-11-07 14:43:04 +02:00
circle.yml Reenable later versions for CircleCI 2015-07-26 11:05:19 +02:00
CONTRIBUTING.md Add note about SSL tests requiring R16B01 2013-08-31 10:24:11 +02:00
erlang.mk Add CircleCI to the 1.0 branch 2015-07-25 21:26:56 +02:00
LICENSE Update copyright years 2014-02-06 19:57:23 +01:00
Makefile Looks like we need an even older Gun version 2015-07-26 15:16:10 +02:00
README.md Provide installable man pages 2014-07-06 13:10:35 +02:00
rebar.config Use HTTPS dependencies when using Rebar 2015-07-05 23:33:04 +02:00
ROADMAP.md Remove 1.0 section in the ROADMAP 2014-08-01 14:43:04 +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