pub fn uds_request(
socket_path: &Path,
method: &str,
request_target: &str,
headers: &[(&str, &str)],
body: &[u8],
) -> Result<(u16, Vec<u8>)>Expand description
v0.7.0-alpha.17: minimal blocking HTTP/1.1 client over Unix Domain
Socket. Used by callers that detect a unix:// scheme on a relay
endpoint URL and route around reqwest (which has no UDS support).
Connects to socket_path, writes a single HTTP/1.1 request, parses
status + Content-Length + body. Closes the connection (no keep-
alive). Sufficient for wire’s request shape: single POST or GET per
call, JSON in + JSON out, small payloads.
Returns (status_code, body_bytes). Caller decodes body per the
endpoint’s content type.