[][src]Function grin_api::client::post_async

pub async fn post_async<'_, '_, IN, OUT>(
    url: &'_ str,
    input: &'_ IN,
    api_secret: Option<String>
) -> Result<OUT, Error> where
    IN: Serialize,
    OUT: Send + 'static,
    OUT: Deserialize<'de>, 

Helper function to easily issue an async HTTP POST request with the provided JSON object as body on a given URL that returns a future. Handles request building, JSON serialization and deserialization, and response code checking.