Skip to content

danylaporte/reqwest-trace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

reqwest-trace

A wrapper for reqwest to trace requests (with body).

Example

use reqwest_trace::{Result, TraceClient};

#[tokio::main]
async fn main() -> Result<()> {
    let client = TraceClient::new();

    let text = client
        .get("http://www.google.com")
        .send()
        .await?
        .text()
        .await?;

    Ok(())
}

License

The MIT license.

About

tracing integration for reqwest

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages