The existing unix_socket method has some limitations in its design:
You cannot unset a previously set path.
You cannot set non-UTF-8 paths.
This adds a second method named unix_socket_path that instead takes an Option<impl AsRef<Path>> which more closely aligns with what libcurl accepts for this option. We could consider soft-deprecating unix_socket, but I left it alone for now.
The existing
unix_socket
method has some limitations in its design:This adds a second method named
unix_socket_path
that instead takes anOption<impl AsRef<Path>>
which more closely aligns with what libcurl accepts for this option. We could consider soft-deprecatingunix_socket
, but I left it alone for now.