ocamlnet

Internet protocols (HTTP, CGI, e-mail etc.) and helper data structures
Overview Documentation
IN THIS PACKAGE
  • library equeue
  • library netaccel
  • library netcamlbox
  • library netcgi
  • library netcgi2-plex
  • library netclient
  • library nethttpd
  • library netmulticore
  • library netplex
  • library netshm
  • library netstring
  • library netstring-pcre
  • library netsys
  • library netsys_oothr
  • library netsys_oothr_mt
  • library netunidata
  • library rpc
  • library rpc_auth_local
  • library rpc_generator
  • library shell
Module Neturl
exception Malformed_URL
val extract_url_scheme : string -> string
type url_syntax_option =
| Url_part_not_recognized
| Url_part_allowed
| Url_part_required
type url_syntax = {
url_enable_scheme : url_syntax_option;
url_enable_user : url_syntax_option;
url_enable_user_param : url_syntax_option;
url_enable_password : url_syntax_option;
url_enable_host : url_syntax_option;
url_enable_port : url_syntax_option;
url_enable_path : url_syntax_option;
url_enable_param : url_syntax_option;
url_enable_query : url_syntax_option;
url_enable_fragment : url_syntax_option;
url_enable_other : url_syntax_option;
url_accepts_8bits : bool;
url_is_valid : url -> bool;
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 ) 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 ) 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