package atacama

  1. Overview
  2. Docs

Default handler methods. Useful for bootstrapping new handlers incrementally.

You can use this module by just including it inside your new handle module:

```ocaml module My_handler = struct include Atacama.Handler.Default

(* .. define overrides .. *) end ```

val handle_close : Connection.t -> 'state -> unit
val handle_connection : Connection.t -> 'state -> ('state, 'error) handler_result
val handle_data : Riot.Bytestring.t -> Connection.t -> 'state -> ('state, 'error) handler_result
val handle_error : 'error -> Connection.t -> 'state -> ('state, 'error) handler_result
val handle_shutdown : Connection.t -> 'state -> ('state, 'error) handler_result
val handle_timeout : Connection.t -> 'state -> ('state, 'error) handler_result
val handle_message : Riot.Message.t -> Connection.t -> 'state -> ('state, 'error) handler_result
OCaml

Innovation. Community. Security.