Cowboy Function Reference

Name

cowboy - Small, fast, modern HTTP server for Erlang/OTP

Description

Cowboy is an HTTP server for Erlang/OTP with support for the HTTP/1.1, HTTP/2 and Websocket protocols.

Cowboy aims to provide a complete HTTP stack. This includes the implementation of the HTTP RFCs but also any directly related standards, like Websocket or Server-Sent Events.

Modules

Functions:

Protocols:

Handlers:

Stream handlers:

Behaviors:

Middlewares:

Dependencies

  • ranch(7) - Socket acceptor pool for TCP protocols
  • cowlib(7) - Support library for manipulating Web protocols
  • ssl - Secure communication over sockets
  • crypto - Crypto functions

All these applications must be started before the cowboy application. To start Cowboy and all dependencies at once:

{ok, _} = application:ensure_all_started(cowboy).

Environment

The cowboy application does not define any application environment configuration parameters.

See also

ranch(7), cowlib(7)

Cowboy 2.11 Function Reference

Navigation

Version select

Like my work? Donate!

Donate to Loïc Hoguin because his work on Cowboy, Ranch, Gun and Erlang.mk is fantastic:

Recurring payment options are also available via GitHub Sponsors. These funds are used to cover the recurring expenses like food, dedicated servers or domain names.