Neodriver_core.AddressingServer addresses and URI parsing.
Server addresses and URI parsing for the Neo4j driver.
See addressing.ml for the implementation.
A resolved address carrying the original (unresolved) host name, used for TLS SNI and pool deactivation.
A parsed driver URI.
val host : t -> stringThe host part of an address.
val port : t -> intThe port part of an address.
val to_string : t -> stringRender an address as "host:port" (IPv6 host in brackets).
val connect_failure_message :
address:t ->
resolved:string list ->
failures:Errors.failures ->
stringRender the message for a connection attempt that failed on every resolved address, mirroring the Python driver ("Couldn't connect to <address> (resolved to <addrs>):\n<errors>"). resolved are the rendered addresses that failed and failures aggregates the individual errors.
Parse a "host:port" or "host:port" string, applying the given defaults to empty host/port parts.
val parse_list :
?default_host:string ->
?default_port:int ->
string list ->
(t list, Errors.t) Stdlib.resultParse a whitespace-separated list of targets into addresses.
Build a resolved address with the given unresolved host name.
val resolved_host_name : resolved -> stringThe host name to use for TLS SNI / hostname verification.
Rebuild the address using the unresolved host name (used for pool deactivation).
val scheme_to_string : scheme -> stringRender a scheme as its URI string (e.g. "bolt+ssc").
val parse_routing_context :
string ->
((string * string) list, Errors.t) Stdlib.resultParse the query part of a URI into a routing context, decoding percent escapes. Empty values and duplicate keys are rejected.