I have this simple REST code . I use reqwest crate. The code is getting executed
but I dont see any traffic ot tcp connection to the port 8008. I use simple netcat utility
nc -l -p 8008 to check the tcp connection.
I could able to see the connection when I use curl or even telnet localhost 8008 .
This means my program do not make tcp connection as required.
Could any one help on this ?.
Thanks,
S.Gopinath
use reqwest;
pub fn main()
{
let send_bytes : Vec<u8> = vec![0;100];
let this_client = reqwest::Client::new()
.post("http://localhost:8008/batches")
.header("Content-Type", "application/octet-stream")
.body(send_bytes);
println!("After send");
}