package conduit-lwt-unix
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=a2e29088630bbef92c1a902192a09548ab4a6b3f75a7eee6722426eca1efc05f
sha512=308041a9cccf5b01827365ae9e75915bf33c812658ff1a802b275827f4c9af98dd991df9106a5b8d70374cc0d41398621bbafd8de829acfef4cb86e6b9523712
doc/conduit-lwt-unix/Resolver_lwt_unix/index.html
Module Resolver_lwt_unixSource
Resolve URIs to endpoints using Unix system calls
Prebuilt resolvers
Use the Unix system name resolver via getaddrinfo and getservbyname
static hosts constructs a resolver that looks up any resolution requests from the static hosts hashtable instead of using the system resolver.
Rewrite and service functions
These can be used to assemble your own resolvers if the prebuilt ones are not quite what you need.
Perform service lookup using getservbyname
Perform service lookup using the builtin Uri_services module
Rewrite function that uses the system_service and static_service to resolve hosts
Debugging Hooks
If debug is true, the builtin resolvers will output their resolution responses via the debug_print function. The default value of debug is true if the CONDUIT_DEBUG environment variable is set, and false otherwise.
val debug_print :
((string -> string -> string -> string -> unit, out_channel, unit) format ->
string ->
string ->
string ->
string ->
unit)
refdebug_print is called by the debug functions to output the results of resolution. Defaults to Printf.eprintf to go to the standard error.