package ez_api

  1. Overview
  2. Docs
val str_of_expr : Astlib.Ast_414.Parsetree.expression -> string
val str_of_pat : Astlib.Ast_414.Parsetree.pattern -> string
val str_of_structure : Astlib.Ast_414.Parsetree.structure -> string
val llid : loc:Ppxlib.location -> string -> Ppxlib.Longident.t Ppxlib.loc

service

type options = {
  1. path : Ppxlib.expression;
  2. input : Ppxlib.expression;
  3. output : Ppxlib.expression;
  4. errors : Ppxlib.expression;
  5. params : Ppxlib.expression;
  6. section : Ppxlib.expression;
  7. name : Ppxlib.expression;
  8. descr : Ppxlib.expression;
  9. security : Ppxlib.expression;
  10. register : Ppxlib.expression;
  11. input_example : Ppxlib.expression;
  12. output_example : Ppxlib.expression;
  13. error_type : Ppxlib.core_type;
  14. security_type : Ppxlib.core_type;
  15. debug : bool;
  16. directory : string option;
  17. service : Ppxlib.expression option;
}
val methods : string list
val parse_path : loc:Ppxlib.Location.t -> string -> Astlib.Ast_500.Parsetree.expression
val string_literal : Ppxlib.constant -> string option
val get_options : loc:Astlib.Location.t -> ?name:string -> ?client:bool -> Ppxlib.attribute -> string option * options
val service_value : ?name:string -> ?client:bool -> Ppxlib.attribute -> Astlib.Ast_500.Parsetree.structure_item * string * options

register service/handler

val first : bool Stdlib.ref
val ppx_dir : loc:Astlib.Location.t -> 'a option -> Astlib.Ast_500.Parsetree.structure_item list
val register_ws : onclose:Ppxlib.value_binding list -> string -> string -> Ppxlib.attribute -> Astlib.Ast_500.Parsetree.structure_item list
val process_ws : onclose:Ppxlib.value_binding list -> string -> string -> Ppxlib.attribute -> Astlib.Ast_500.Parsetree.structure_item list
val handler_args : Ppxlib.expression -> Ppxlib.expression

server

type server_options = {
  1. port : Ppxlib.expression;
  2. dir : Ppxlib.expression;
  3. catch : Ppxlib.expression;
}
val server_options : Ppxlib.attribute -> server_options
val impl : ?kind:[> `client | `server ] -> Ppxlib.structure -> Ppxlib.structure
OCaml

Innovation. Community. Security.