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
![]() When something went wrong in a handler we used to report errors and then terminate the process normally. This doesn't work so well with links which won't detect failure. Now we still catch the error, but throw another one with more details on why it happened, including the Req object information and the stacktrace. Ranch will then print an error message with all this information. Because we crash directly, this also means that we will not hog resources unnecessarily for too long when something bad happens. |
||
---|---|---|
doc | ||
examples | ||
guide | ||
manual | ||
src | ||
test | ||
.gitignore | ||
AUTHORS | ||
CHANGELOG.md | ||
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 parts 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 protocol development is sponsored by LeoFS Cloud Storage.
Getting Started
- Read the guide
- Check the manual
- Look at the examples in the
examples/
directory
Support
- Official IRC Channel: #ninenines on irc.freenode.net
- Mailing Lists
- Commercial Support