Skip to main content

post

Function post 

Source
pub async fn post(
    addr: SocketAddr,
    path: &str,
    bearer: Option<&str>,
    body: &[u8],
    deadline: Duration,
) -> Result<(u16, Vec<u8>)>
Expand description

POST a body; returns (status, response body).