package ez_api

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
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. hide : Ppxlib.expression;
  12. input_example : Ppxlib.expression;
  13. output_example : Ppxlib.expression;
  14. error_type : Ppxlib.core_type;
  15. security_type : Ppxlib.core_type;
  16. debug : bool;
  17. directory : string option;
  18. service : Ppxlib.expression option;
}
val options : ?register:Astlib.Ast_500.Parsetree.expression -> ?name:string -> Astlib.Location.t -> options
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.payload -> string option * options
val service_value : ?name:string -> ?client:bool -> meth:string -> loc:Astlib.Location.t -> Ppxlib.payload -> 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 : loc:Ppxlib.Location.t -> Ppxlib.payload -> server_options
val deprecate : string -> unit
val impl : ?kind:[> `client | `server ] -> Ppxlib.structure -> Ppxlib.structure
OCaml

Innovation. Community. Security.