package atacama

  1. Overview
  2. Docs

Module Handler.DefaultSource

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 ```

Sourceval handle_close : Socket.t -> 'state -> unit
Sourceval handle_connection : Socket.t -> 'state -> ('state, 'error) handler_result
Sourceval handle_data : Bigstringaf.t -> Socket.t -> 'state -> ('state, 'error) handler_result
Sourceval handle_error : 'error -> Socket.t -> 'state -> ('state, 'error) handler_result
Sourceval handle_shutdown : Socket.t -> 'state -> ('state, 'error) handler_result
Sourceval handle_timeout : Socket.t -> 'state -> ('state, 'error) handler_result