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 b290b88a67 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 12:48:07 +02:00
doc/src Add optional callbacks 2015-07-27 23:58:58 +02:00
ebin Fix .app module list 2015-07-23 22:46:19 +02:00
examples Use the new unique_integer function to generate IDs 2015-07-27 17:30:17 +02:00
src Use 'Connection' header only when necessary 2015-08-07 12:48:07 +02:00
test Use 'Connection' header only when necessary 2015-08-07 12:48:07 +02:00
.gitignore Update gitignore 2015-07-23 14:28:19 +02:00
all.sh Update version to 2.0.0-pre.1 2014-10-04 17:01:43 +03:00
AUTHORS Update AUTHORS 2014-10-04 13:32:51 +03:00
build.config Add HTTP/2 support preview 2015-06-11 17:04:21 +02:00
CHANGELOG.md Update CHANGELOG 2014-10-04 15:50:53 +03:00
circle.yml Add support for Autobahn test suite for CircleCI builds 2015-07-22 18:28:15 +02:00
CONTRIBUTING.asciidoc CONTRIBUTING additions 2015-07-27 11:47:00 +02:00
erlang.mk Fix ci-prepare when OTP builds exist 2015-07-21 21:23:41 +02:00
LICENSE Update copyright years 2014-02-06 19:57:23 +01:00
Makefile Don't call xdg-open at the end of CI 2015-07-21 17:39:17 +02:00
README.md Add rfc7230 test suite and update others to recent Gun 2015-05-05 19:59:37 +03:00
rebar.config Use HTTPS dependencies when using Rebar 2015-07-05 23:31:44 +02:00
ROADMAP.md Update ROADMAP 2014-10-04 13:26:40 +03: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 project is currently sponsored by Kato.im.

The SPDY implementation was sponsored by LeoFS Cloud Storage.

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