Skip to main content

request_json

Function request_json 

Source
pub fn request_json(
    ip: IpAddr,
    port: u16,
    https: bool,
    fingerprint: &str,
    method: &str,
    target: &str,
    json: Option<&[u8]>,
    timeout: Duration,
) -> Result<Reply>
Expand description

One small request with an optional JSON body, on a fresh connection.