Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Jerboa.Path_handler
module consists of the type definition of the Path_handler and an easy to use constructor.
Path_handler.t
is the type of the path handler, which will be used to handle a specific request.
val create : Meth.t -> Path_mapping.t -> Request_handler.t -> t
Path_handler.create meth path_mapping request_handler
is a constructor for path handler records, which work based on:
val handle_path_handler : t -> Request.t -> Response.t
val apply_path_handler :
t option ->
Request.t ->
(Request.t -> Response.t) ->
Response.t