cowboy_app.asciidoc 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. = cowboy(7)
  2. == Name
  3. cowboy - Small, fast, modern HTTP server for Erlang/OTP
  4. == Description
  5. Cowboy is an HTTP server for Erlang/OTP with support for the
  6. HTTP/1.1, HTTP/2 and Websocket protocols.
  7. Cowboy aims to provide a complete HTTP stack. This includes
  8. the implementation of the HTTP RFCs but also any directly
  9. related standards, like Websocket or Server-Sent Events.
  10. == Modules
  11. Functions:
  12. * link:man:cowboy(3)[cowboy(3)] - Listener management
  13. * link:man:cowboy_req(3)[cowboy_req(3)] - Request and response
  14. * link:man:cowboy_router(3)[cowboy_router(3)] - Router
  15. * link:man:cowboy_constraints(3)[cowboy_constraints(3)] - Constraints
  16. Protocols:
  17. * link:man:cowboy_http(3)[cowboy_http(3)] - HTTP/1.1
  18. * link:man:cowboy_http2(3)[cowboy_http2(3)] - HTTP/2
  19. * link:man:cowboy_websocket(3)[cowboy_websocket(3)] - Websocket
  20. Handlers:
  21. * link:man:cowboy_static(3)[cowboy_static(3)] - Static file handler
  22. Behaviors:
  23. * link:man:cowboy_handler(3)[cowboy_handler(3)] - Plain HTTP handlers
  24. * link:man:cowboy_loop(3)[cowboy_loop(3)] - Loop handlers
  25. * link:man:cowboy_middleware(3)[cowboy_middleware(3)] - Middlewares
  26. * link:man:cowboy_rest(3)[cowboy_rest(3)] - REST handlers
  27. * link:man:cowboy_stream(3)[cowboy_stream(3)] - Stream handlers
  28. * link:man:cowboy_websocket(3)[cowboy_websocket(3)] - Websocket handlers
  29. Middlewares:
  30. * link:man:cowboy_router(3)[cowboy_router(3)] - Router middleware
  31. * link:man:cowboy_handler(3)[cowboy_handler(3)] - Handler middleware
  32. // @todo http_status_codes is not linked to; what to do with it?
  33. == Dependencies
  34. * link:man:ranch(7)[ranch(7)] - Socket acceptor pool for TCP protocols
  35. * link:man:cowlib(7)[cowlib(7)] - Support library for manipulating Web protocols
  36. * ssl - Secure communication over sockets
  37. * crypto - Crypto functions
  38. All these applications must be started before the `cowboy`
  39. application. To start Cowboy and all dependencies at once:
  40. [source,erlang]
  41. ----
  42. {ok, _} = application:ensure_all_started(cowboy).
  43. ----
  44. == Environment
  45. The `cowboy` application does not define any application
  46. environment configuration parameters.
  47. == See also
  48. link:man:ranch(7)[ranch(7)],
  49. link:man:cowlib(7)[cowlib(7)]