{ok, _} = application:ensure_all_started(cowboy).
cowboy - Small, fast, modern HTTP server for Erlang/OTP
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.
Functions:
Protocols:
Handlers:
Stream handlers:
Behaviors:
Middlewares:
All these applications must be started before the cowboy application. To start Cowboy and all dependencies at once:
{ok, _} = application:ensure_all_started(cowboy).
The cowboy application does not define any application environment configuration parameters.
Support my work on Cowboy, Ranch, Gun and Erlang.mk via GitHub Sponsors. The funds cover domain names and development tools.