Expand description
Sends an http PUT request to the given URL.
The payload to send is read from r
, which can be easily made
with std::io::Cursor
in case you’re using a slice as a source.
let data = b"something to send";
idcurl::put("http://example.com", std::io::Cursor::new(data))
.unwrap()
.copy_to(&mut std::io::stdout())
.unwrap();