package ocamlnet

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
exception Malformed_URL
val extract_url_scheme : string -> string
type url_syntax_option =
  1. | Url_part_not_recognized
  2. | Url_part_allowed
  3. | Url_part_required
type url_syntax = {
  1. url_enable_scheme : url_syntax_option;
  2. url_enable_user : url_syntax_option;
  3. url_enable_user_param : url_syntax_option;
  4. url_enable_password : url_syntax_option;
  5. url_enable_host : url_syntax_option;
  6. url_enable_port : url_syntax_option;
  7. url_enable_path : url_syntax_option;
  8. url_enable_param : url_syntax_option;
  9. url_enable_query : url_syntax_option;
  10. url_enable_fragment : url_syntax_option;
  11. url_enable_other : url_syntax_option;
  12. url_accepts_8bits : bool;
  13. url_is_valid : url -> bool;
  14. url_enable_relative : bool;
}
and url
val url_syntax_is_valid : url_syntax -> bool
val partial_url_syntax : url_syntax -> url_syntax
val null_url_syntax : url_syntax
val ip_url_syntax : url_syntax
val common_url_syntax : (string, url_syntax) Stdlib.Hashtbl.t
val null_url : url
val make_url : ?encoded:bool -> ?scheme:string -> ?user:string -> ?user_param:string list -> ?password:string -> ?host:string -> ?addr:Unix.inet_addr -> ?port:int -> ?socksymbol:Netsockaddr.socksymbol -> ?path:string list -> ?param:string list -> ?query:string -> ?fragment:string -> ?other:string -> url_syntax -> url
val modify_url : ?syntax:url_syntax -> ?encoded:bool -> ?scheme:string -> ?user:string -> ?user_param:string list -> ?password:string -> ?host:string -> ?addr:Unix.inet_addr -> ?port:int -> ?socksymbol:Netsockaddr.socksymbol -> ?path:string list -> ?param:string list -> ?query:string -> ?fragment:string -> ?other:string -> url -> url
val remove_from_url : ?scheme:bool -> ?user:bool -> ?user_param:bool -> ?password:bool -> ?host:bool -> ?port:bool -> ?path:bool -> ?param:bool -> ?query:bool -> ?fragment:bool -> ?other:bool -> url -> url
val default_url : ?encoded:bool -> ?scheme:string -> ?user:string -> ?user_param:string list -> ?password:string -> ?host:string -> ?port:int -> ?path:string list -> ?param:string list -> ?query:string -> ?fragment:string -> ?other:string -> url -> url
val undefault_url : ?scheme:string -> ?user:string -> ?user_param:string list -> ?password:string -> ?host:string -> ?port:int -> ?path:string list -> ?param:string list -> ?query:string -> ?fragment:string -> ?other:string -> url -> url
val url_syntax_of_url : url -> url_syntax
val url_of_string : url_syntax -> string -> url
val string_of_url : url -> string
val parse_url : ?schemes:(string, url_syntax) Stdlib.Hashtbl.t -> ?base_syntax:url_syntax -> ?accept_8bits:bool -> ?enable_fragment:bool -> string -> url
val fixup_url_string : ?escape_hash:bool -> string -> string
val url_provides : ?scheme:bool -> ?user:bool -> ?user_param:bool -> ?password:bool -> ?host:bool -> ?port:bool -> ?path:bool -> ?param:bool -> ?query:bool -> ?fragment:bool -> ?other:bool -> url -> bool
val url_scheme : url -> string
val url_user : ?encoded:bool -> url -> string
val url_user_param : ?encoded:bool -> url -> string list
val url_password : ?encoded:bool -> url -> string
val url_host : url -> string
val url_port : url -> int
val url_path : ?encoded:bool -> url -> string list
val url_param : ?encoded:bool -> url -> string list
val url_query : ?encoded:bool -> url -> string
val url_fragment : ?encoded:bool -> url -> string
val url_other : ?encoded:bool -> url -> string
val url_addr : url -> Unix.inet_addr
val url_socksymbol : url -> int -> Netsockaddr.socksymbol
val split_path : string -> string list
val join_path : string list -> string
val norm_path : string list -> string list
val apply_relative_url : url -> url -> url
val ensure_absolute_url : ?base:url -> url -> url
val file_url_of_local_path : ?getcwd:(unit -> string) -> string -> url
val local_path_of_file_url : url -> string
val print_url : url -> unit
val ldap_url_syntax : url_syntax
OCaml

Innovation. Community. Security.