Module

Erl.Cowboy.Handlers.Simple

Package
erl-cowboy
Repository
purerl/purescript-erl-cowboy

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

#InitResult Source

data InitResult :: Type -> Type

#InitHandler Source

#initResult Source

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

#CowboyHandlerBehaviour Source

type CowboyHandlerBehaviour = Behaviour "cowboy_handler"

#cowboyHandlerBehaviour Source

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 Source

#TerminateReason Source

data TerminateReason

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

Constructors

#RawReason Source

data RawReason :: Type

#CrashType Source

data CrashType

Constructors