Module

Erl.Cowboy.Handlers.Simple

Types and helpers for a cowboy_handler "Plain HTTP handler" callback module

#InitResult

data InitResult t0

#InitHandler

#initResult

initResult :: forall a. a -> Req -> InitResult a

#CowboyHandlerBehaviour

type CowboyHandlerBehaviour = Behaviour "cowboy_handler"

#cowboyHandlerBehaviour

cowboyHandlerBehaviour :: forall a s. { init :: InitHandler a s } -> CowboyHandlerBehaviour

A simple cowboy_handler behaviour. A terminate callback is optional.

Re-exports from Erl.Cowboy.Handlers.Common

#TerminateResult

#TerminateReason

data TerminateReason

Reason for a crash. The Reason :: any() is currently discarded

Constructors

#RawReason

#CrashType

data CrashType

Constructors

Modules