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.
cowboyerlangfunctionalhigh-performancehttphttp-serverhttp2http2-serverhttpsproduction-readyrestwebweb-frameworkwebsocketwebsocket-serverwebsockets
![]() 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. |
||
---|---|---|
doc/src | ||
examples | ||
src | ||
test | ||
.gitignore | ||
all.sh | ||
AUTHORS | ||
CHANGELOG.md | ||
circle.yml | ||
CONTRIBUTING.md | ||
erlang.mk | ||
LICENSE | ||
Makefile | ||
README.md | ||
rebar.config | ||
ROADMAP.md |
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/
anddoc/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
- Official IRC Channel: #ninenines on irc.freenode.net
- Mailing Lists
- Commercial Support