sig
  type page = string
  val send :
    ?cookies:Extensions.cookieslist ->
    ?charset:string ->
    ?code:int -> server_params -> page -> Eliommod.result_to_send
  val register :
    ?sp:server_params ->
    service:('a, 'b, [< internal_service_kind ], [< suff ], 'c, 'd,
             [ `Registrable ])
            service ->
    ?error_handler:(server_params -> (string * exn) list -> page Lwt.t) ->
    (server_params -> '-> '-> page Lwt.t) -> unit
  val register_for_session :
    server_params ->
    service:('a, 'b, [< internal_service_kind ], [< suff ], 'c, 'd,
             [ `Registrable ])
            service ->
    ?error_handler:(server_params -> (string * exn) list -> page Lwt.t) ->
    (server_params -> '-> '-> page Lwt.t) -> unit
  val register_new_service :
    ?sp:server_params ->
    url:url_path ->
    get_params:('a, [< suff ] as 'b, 'c) params_type ->
    ?error_handler:(server_params -> (string * exn) list -> page Lwt.t) ->
    (server_params -> '-> unit -> page Lwt.t) ->
    ('a, unit,
     [> `Attached of [> `Internal of [> `Service ] * [> `Get ] ] a_s ], 'b,
     'c, unit param_name, [> `Registrable ])
    service
  val register_new_coservice :
    ?sp:server_params ->
    ?max_use:int ->
    ?timeout:float ->
    fallback:(unit, unit,
              [ `Attached of [ `Internal of [ `Service ] * [ `Get ] ] a_s ],
              [ `WithoutSuffix ], unit param_name, unit param_name,
              [< registrable ])
             service ->
    get_params:('a, [ `WithoutSuffix ], 'b) params_type ->
    ?error_handler:(server_params -> (string * exn) list -> page Lwt.t) ->
    (server_params -> '-> unit -> page Lwt.t) ->
    ('a, unit,
     [> `Attached of [> `Internal of [> `Coservice ] * [> `Get ] ] a_s ],
     [ `WithoutSuffix ], 'b, unit param_name, [> `Registrable ])
    service
  val register_new_coservice' :
    ?sp:server_params ->
    ?max_use:int ->
    ?timeout:float ->
    get_params:('a, [ `WithoutSuffix ], 'b) params_type ->
    ?error_handler:(server_params -> (string * exn) list -> page Lwt.t) ->
    (server_params -> '-> unit -> page Lwt.t) ->
    ('a, unit, [> `Nonattached of [> `Get ] na_s ], [ `WithoutSuffix ], 'b,
     unit param_name, [> `Registrable ])
    service
  val register_new_coservice_for_session :
    server_params ->
    ?max_use:int ->
    ?timeout:float ->
    fallback:(unit, unit,
              [ `Attached of [ `Internal of [ `Service ] * [ `Get ] ] a_s ],
              [ `WithoutSuffix ], unit param_name, unit param_name,
              [< registrable ])
             service ->
    get_params:('a, [ `WithoutSuffix ], 'b) params_type ->
    ?error_handler:(server_params -> (string * exn) list -> page Lwt.t) ->
    (server_params -> '-> unit -> page Lwt.t) ->
    ('a, unit,
     [> `Attached of [> `Internal of [> `Coservice ] * [> `Get ] ] a_s ],
     [ `WithoutSuffix ], 'b, unit param_name, [> `Registrable ])
    service
  val register_new_coservice_for_session' :
    server_params ->
    ?max_use:int ->
    ?timeout:float ->
    get_params:('a, [ `WithoutSuffix ], 'b) params_type ->
    ?error_handler:(server_params -> (string * exn) list -> page Lwt.t) ->
    (server_params -> '-> unit -> page Lwt.t) ->
    ('a, unit, [> `Nonattached of [> `Get ] na_s ], [ `WithoutSuffix ], 'b,
     unit param_name, [> `Registrable ])
    service
  val register_new_post_service :
    ?sp:server_params ->
    fallback:('a, unit,
              [ `Attached of
                  [ `Internal of [ `Coservice | `Service ] * [ `Get ] ] a_s ],
              [< suff ] as 'b, 'c, unit param_name, [< `Registrable ])
             service ->
    post_params:('d, [ `WithoutSuffix ], 'e) params_type ->
    ?error_handler:(server_params -> (string * exn) list -> page Lwt.t) ->
    (server_params -> '-> '-> page Lwt.t) ->
    ('a, 'd,
     [> `Attached of
          [> `Internal of [ `Coservice | `Service ] * [> `Post ] ] a_s ],
     'b, 'c, 'e, [> `Registrable ])
    service
  val register_new_post_coservice :
    ?sp:server_params ->
    ?max_use:int ->
    ?timeout:float ->
    fallback:('a, unit,
              [ `Attached of
                  [ `Internal of [< `Coservice | `Service ] * [ `Get ] ] a_s ],
              [< suff ] as 'b, 'c, unit param_name, [< `Registrable ])
             service ->
    post_params:('d, [ `WithoutSuffix ], 'e) params_type ->
    ?error_handler:(server_params -> (string * exn) list -> page Lwt.t) ->
    (server_params -> '-> '-> page Lwt.t) ->
    ('a, 'd,
     [> `Attached of [> `Internal of [> `Coservice ] * [> `Post ] ] a_s ],
     'b, 'c, 'e, [> `Registrable ])
    service
  val register_new_post_coservice' :
    ?sp:server_params ->
    ?max_use:int ->
    ?timeout:float ->
    post_params:('a, [ `WithoutSuffix ], 'b) params_type ->
    ?error_handler:(server_params -> (string * exn) list -> page Lwt.t) ->
    (server_params -> unit -> '-> page Lwt.t) ->
    (unit, 'a, [> `Nonattached of [> `Post ] na_s ], [ `WithoutSuffix ],
     unit param_name, 'b, [> `Registrable ])
    service
  val register_new_post_coservice_for_session :
    server_params ->
    ?max_use:int ->
    ?timeout:float ->
    fallback:('a, unit,
              [< `Attached of
                   [< `Internal of [< `Coservice | `Service ] * [ `Get ] ]
                   a_s ],
              [< suff ] as 'b, 'c, unit param_name, [< `Registrable ])
             service ->
    post_params:('d, [ `WithoutSuffix ], 'e) params_type ->
    ?error_handler:(server_params -> (string * exn) list -> page Lwt.t) ->
    (server_params -> '-> '-> page Lwt.t) ->
    ('a, 'd,
     [> `Attached of [> `Internal of [> `Coservice ] * [> `Post ] ] a_s ],
     'b, 'c, 'e, [> `Registrable ])
    service
  val register_new_post_coservice_for_session' :
    server_params ->
    ?max_use:int ->
    ?timeout:float ->
    post_params:('a, [ `WithoutSuffix ], 'b) params_type ->
    ?error_handler:(server_params -> (string * exn) list -> page Lwt.t) ->
    (server_params -> unit -> '-> page Lwt.t) ->
    (unit, 'a, [> `Nonattached of [> `Post ] na_s ], [ `WithoutSuffix ],
     unit param_name, 'b, [> `Registrable ])
    service
  module Cookies :
    sig
      type page = page * Extensions.cookieslist
      val send :
        ?cookies:Extensions.cookieslist ->
        ?charset:string ->
        ?code:int -> server_params -> page -> Eliommod.result_to_send
      val register :
        ?sp:server_params ->
        service:('a, 'b, [< internal_service_kind ], [< suff ], 'c, 'd,
                 [ `Registrable ])
                service ->
        ?error_handler:(server_params -> (string * exn) list -> page Lwt.t) ->
        (server_params -> '-> '-> page Lwt.t) -> unit
      val register_for_session :
        server_params ->
        service:('a, 'b, [< internal_service_kind ], [< suff ], 'c, 'd,
                 [ `Registrable ])
                service ->
        ?error_handler:(server_params -> (string * exn) list -> page Lwt.t) ->
        (server_params -> '-> '-> page Lwt.t) -> unit
      val register_new_service :
        ?sp:server_params ->
        url:url_path ->
        get_params:('a, [< suff ] as 'b, 'c) params_type ->
        ?error_handler:(server_params -> (string * exn) list -> page Lwt.t) ->
        (server_params -> '-> unit -> page Lwt.t) ->
        ('a, unit,
         [> `Attached of [> `Internal of [> `Service ] * [> `Get ] ] a_s ],
         'b, 'c, unit param_name, [> `Registrable ])
        service
      val register_new_coservice :
        ?sp:server_params ->
        ?max_use:int ->
        ?timeout:float ->
        fallback:(unit, unit,
                  [ `Attached of [ `Internal of [ `Service ] * [ `Get ] ] a_s ],
                  [ `WithoutSuffix ], unit param_name, unit param_name,
                  [< registrable ])
                 service ->
        get_params:('a, [ `WithoutSuffix ], 'b) params_type ->
        ?error_handler:(server_params -> (string * exn) list -> page Lwt.t) ->
        (server_params -> '-> unit -> page Lwt.t) ->
        ('a, unit,
         [> `Attached of [> `Internal of [> `Coservice ] * [> `Get ] ] a_s ],
         [ `WithoutSuffix ], 'b, unit param_name, [> `Registrable ])
        service
      val register_new_coservice' :
        ?sp:server_params ->
        ?max_use:int ->
        ?timeout:float ->
        get_params:('a, [ `WithoutSuffix ], 'b) params_type ->
        ?error_handler:(server_params -> (string * exn) list -> page Lwt.t) ->
        (server_params -> '-> unit -> page Lwt.t) ->
        ('a, unit, [> `Nonattached of [> `Get ] na_s ], [ `WithoutSuffix ],
         'b, unit param_name, [> `Registrable ])
        service
      val register_new_coservice_for_session :
        server_params ->
        ?max_use:int ->
        ?timeout:float ->
        fallback:(unit, unit,
                  [ `Attached of [ `Internal of [ `Service ] * [ `Get ] ] a_s ],
                  [ `WithoutSuffix ], unit param_name, unit param_name,
                  [< registrable ])
                 service ->
        get_params:('a, [ `WithoutSuffix ], 'b) params_type ->
        ?error_handler:(server_params -> (string * exn) list -> page Lwt.t) ->
        (server_params -> '-> unit -> page Lwt.t) ->
        ('a, unit,
         [> `Attached of [> `Internal of [> `Coservice ] * [> `Get ] ] a_s ],
         [ `WithoutSuffix ], 'b, unit param_name, [> `Registrable ])
        service
      val register_new_coservice_for_session' :
        server_params ->
        ?max_use:int ->
        ?timeout:float ->
        get_params:('a, [ `WithoutSuffix ], 'b) params_type ->
        ?error_handler:(server_params -> (string * exn) list -> page Lwt.t) ->
        (server_params -> '-> unit -> page Lwt.t) ->
        ('a, unit, [> `Nonattached of [> `Get ] na_s ], [ `WithoutSuffix ],
         'b, unit param_name, [> `Registrable ])
        service
      val register_new_post_service :
        ?sp:server_params ->
        fallback:('a, unit,
                  [ `Attached of
                      [ `Internal of [ `Coservice | `Service ] * [ `Get ] ]
                      a_s ],
                  [< suff ] as 'b, 'c, unit param_name, [< `Registrable ])
                 service ->
        post_params:('d, [ `WithoutSuffix ], 'e) params_type ->
        ?error_handler:(server_params -> (string * exn) list -> page Lwt.t) ->
        (server_params -> '-> '-> page Lwt.t) ->
        ('a, 'd,
         [> `Attached of
              [> `Internal of [ `Coservice | `Service ] * [> `Post ] ] a_s ],
         'b, 'c, 'e, [> `Registrable ])
        service
      val register_new_post_coservice :
        ?sp:server_params ->
        ?max_use:int ->
        ?timeout:float ->
        fallback:('a, unit,
                  [ `Attached of
                      [ `Internal of [< `Coservice | `Service ] * [ `Get ] ]
                      a_s ],
                  [< suff ] as 'b, 'c, unit param_name, [< `Registrable ])
                 service ->
        post_params:('d, [ `WithoutSuffix ], 'e) params_type ->
        ?error_handler:(server_params -> (string * exn) list -> page Lwt.t) ->
        (server_params -> '-> '-> page Lwt.t) ->
        ('a, 'd,
         [> `Attached of [> `Internal of [> `Coservice ] * [> `Post ] ] a_s ],
         'b, 'c, 'e, [> `Registrable ])
        service
      val register_new_post_coservice' :
        ?sp:server_params ->
        ?max_use:int ->
        ?timeout:float ->
        post_params:('a, [ `WithoutSuffix ], 'b) params_type ->
        ?error_handler:(server_params -> (string * exn) list -> page Lwt.t) ->
        (server_params -> unit -> '-> page Lwt.t) ->
        (unit, 'a, [> `Nonattached of [> `Post ] na_s ], [ `WithoutSuffix ],
         unit param_name, 'b, [> `Registrable ])
        service
      val register_new_post_coservice_for_session :
        server_params ->
        ?max_use:int ->
        ?timeout:float ->
        fallback:('a, unit,
                  [< `Attached of
                       [< `Internal of [< `Coservice | `Service ] * [ `Get ] ]
                       a_s ],
                  [< suff ] as 'b, 'c, unit param_name, [< `Registrable ])
                 service ->
        post_params:('d, [ `WithoutSuffix ], 'e) params_type ->
        ?error_handler:(server_params -> (string * exn) list -> page Lwt.t) ->
        (server_params -> '-> '-> page Lwt.t) ->
        ('a, 'd,
         [> `Attached of [> `Internal of [> `Coservice ] * [> `Post ] ] a_s ],
         'b, 'c, 'e, [> `Registrable ])
        service
      val register_new_post_coservice_for_session' :
        server_params ->
        ?max_use:int ->
        ?timeout:float ->
        post_params:('a, [ `WithoutSuffix ], 'b) params_type ->
        ?error_handler:(server_params -> (string * exn) list -> page Lwt.t) ->
        (server_params -> unit -> '-> page Lwt.t) ->
        (unit, 'a, [> `Nonattached of [> `Post ] na_s ], [ `WithoutSuffix ],
         unit param_name, 'b, [> `Registrable ])
        service
    end
  type form_content_elt = string
  type form_content_elt_list = string
  type form_elt = string
  type a_content_elt = string
  type a_content_elt_list = string
  type a_elt = string
  type a_elt_list = string
  type div_content_elt = string
  type div_content_elt_list = string
  type uri = string
  type link_elt = string
  type script_elt = string
  type textarea_elt = string
  type select_elt = string
  type input_elt = string
  type pcdata_elt = string
  type a_attrib_t = string
  type form_attrib_t = string
  type input_attrib_t = string
  type textarea_attrib_t = string
  type select_attrib_t = string
  type link_attrib_t = string
  type script_attrib_t = string
  type input_type_t = string
  val a :
    ?a:a_attrib_t ->
    ('a, unit, [< get_service_kind ], [< suff ], 'b, unit param_name,
     [< registrable ])
    service -> server_params -> a_content_elt_list -> '-> a_elt
  val get_form :
    ?a:form_attrib_t ->
    ('a, unit, [< get_service_kind ], [< suff ], 'b, unit param_name,
     [< registrable ])
    service -> server_params -> ('-> form_content_elt_list) -> form_elt
  val post_form :
    ?a:form_attrib_t ->
    ('a, 'b, [< post_service_kind ], [< suff ], 'c, 'd, [< registrable ])
    service ->
    server_params -> ('-> form_content_elt_list) -> '-> form_elt
  val make_uri :
    ('a, unit, [< get_service_kind ], [< suff ], 'b, unit param_name,
     [< registrable ])
    service -> server_params -> '-> uri
  val js_script : ?a:script_attrib_t -> uri -> script_elt
  val css_link : ?a:link_attrib_t -> uri -> link_elt
  val int_input :
    ?a:input_attrib_t -> ?value:int -> int param_name -> input_elt
  val float_input :
    ?a:input_attrib_t -> ?value:float -> float param_name -> input_elt
  val string_input :
    ?a:input_attrib_t -> ?value:string -> string param_name -> input_elt
  val user_type_input :
    ?a:input_attrib_t ->
    ?value:'-> ('-> string) -> 'a param_name -> input_elt
  val int_password_input :
    ?a:input_attrib_t -> ?value:int -> int param_name -> input_elt
  val float_password_input :
    ?a:input_attrib_t -> ?value:float -> float param_name -> input_elt
  val string_password_input :
    ?a:input_attrib_t -> ?value:string -> string param_name -> input_elt
  val user_type_password_input :
    ?a:input_attrib_t ->
    ?value:'-> ('-> string) -> 'a param_name -> input_elt
  val hidden_int_input :
    ?a:input_attrib_t -> int param_name -> int -> input_elt
  val hidden_float_input :
    ?a:input_attrib_t -> float param_name -> float -> input_elt
  val hidden_string_input :
    ?a:input_attrib_t -> string param_name -> string -> input_elt
  val hidden_user_type_input :
    ?a:input_attrib_t -> ('-> string) -> 'a param_name -> '-> input_elt
  val bool_checkbox :
    ?a:input_attrib_t -> ?checked:bool -> bool param_name -> input_elt
  val string_radio :
    ?a:input_attrib_t ->
    ?checked:bool -> string option param_name -> string -> input_elt
  val int_radio :
    ?a:input_attrib_t ->
    ?checked:bool -> int option param_name -> int -> input_elt
  val float_radio :
    ?a:input_attrib_t ->
    ?checked:bool -> float option param_name -> float -> input_elt
  val user_type_radio :
    ?a:input_attrib_t ->
    ?checked:bool ->
    ('-> string) -> 'a option param_name -> '-> input_elt
  val textarea :
    ?a:textarea_attrib_t ->
    string param_name -> rows:int -> cols:int -> pcdata_elt -> textarea_elt
  val select :
    ?a:select_attrib_t ->
    ?selected:(string option * string) option ->
    string option * string ->
    (string option * string) list -> string param_name -> select_elt
  val submit_input : ?a:input_attrib_t -> string -> input_elt
  val file_input :
    ?a:input_attrib_t ->
    ?value:string -> Extensions.file_info param_name -> input_elt
end