package ocamlnet

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
exception Bad_message of string
exception No_reply
exception Too_many_redirections
exception Name_resolution_error of string
exception URL_syntax_error of string
exception Timeout of string
exception Proxy_error of int
exception Response_too_large
exception Http_protocol of exn
exception Http_error of int * string
type status = [
  1. | `Client_error
  2. | `Http_protocol_error of exn
  3. | `Redirection
  4. | `Server_error
  5. | `Successful
  6. | `Unserved
]
type !'a auth_status = [
  1. | `Auth_error
  2. | `Continue of 'a
  3. | `Continue_reroute of 'a * int
  4. | `None
  5. | `OK
  6. | `Reroute of int
]
type !'message_class how_to_reconnect =
  1. | Send_again
  2. | Request_fails
  3. | Inquire of 'message_class -> bool
  4. | Send_again_if_idem
type !'message_class how_to_redirect =
  1. | Redirect
  2. | Do_not_redirect
  3. | Redirect_inquire of 'message_class -> bool
  4. | Redirect_if_idem
type private_api
type response_body_storage = [
  1. | `Body of unit -> Netmime.mime_body
  2. | `Device of unit -> Uq_io.out_device
  3. | `File of unit -> string
  4. | `Memory
]
type synchronization =
  1. | Sync
  2. | Pipeline of int
type resolver = Unixqueue.unix_event_system -> string -> (Unix.inet_addr option -> unit) -> unit
type transport_layer_id = int
type http_options = {
  1. synchronization : synchronization;
  2. maximum_connection_failures : int;
  3. maximum_message_errors : int;
  4. inhibit_persistency : bool;
  5. connection_timeout : float;
  6. number_of_parallel_connections : int;
  7. maximum_redirections : int;
  8. handshake_timeout : float;
  9. resolver : resolver;
  10. configure_socket : Unix.file_descr -> unit;
  11. tls : Netsys_crypto_types.tls_config option;
  12. schemes : (string * Neturl.url_syntax * int option * transport_layer_id) list;
  13. verbose_status : bool;
  14. verbose_request_header : bool;
  15. verbose_response_header : bool;
  16. verbose_request_contents : bool;
  17. verbose_response_contents : bool;
  18. verbose_connection : bool;
  19. verbose_events : bool;
}
type header_kind = [
  1. | `Base
  2. | `Effective
]
class type http_call = object ... end
class type tls_cache = object ... end
val null_tls_cache : unit -> tls_cache
val unlim_tls_cache : unit -> tls_cache
class type transport_channel_type = object ... end
class virtual generic_call : object ... end
class get : string -> http_call
class trace : string -> int -> http_call
class options : string -> http_call
class head : string -> http_call
class post : string -> (string * string) list -> http_call
class post_raw : string -> string -> http_call
class put : string -> string -> http_call
class delete : string -> http_call
class type key = object ... end
val key : user:string -> password:string -> realm:string -> domain:Neturl.url list -> key
val key_creds : user:string -> creds:(string * string * (string * string) list) list -> http_options -> key
class type key_handler = object ... end
class key_ring : ?uplink:key_handler -> ?no_invalidation:bool -> unit -> object ... end
class type auth_session = object ... end
class type auth_handler = object ... end
class basic_auth_handler : ?enable_reauth:bool -> ?skip_challenge:bool -> key_handler -> auth_handler
class unified_auth_handler : ?insecure:bool -> key_handler -> auth_handler
val close_connection_cache : connection_cache -> unit
val create_restrictive_cache : unit -> connection_cache
val create_aggressive_cache : unit -> connection_cache
val http_trans_id : transport_layer_id
val https_trans_id : transport_layer_id
val spnego_trans_id : transport_layer_id
val proxy_only_trans_id : transport_layer_id
val new_trans_id : unit -> transport_layer_id
val http_transport_channel_type : transport_channel_type
val https_transport_channel_type : Netsys_crypto_types.tls_config -> transport_channel_type
type proxy_type = [
  1. | `Http_proxy
  2. | `Socks5
]
class pipeline : object ... end
val parse_proxy_setting : insecure:bool -> string -> string * int * (string * string * bool) option
val parse_no_proxy : string -> string list
module Convenience : sig ... end
module Debug : sig ... end
OCaml

Innovation. Community. Security.