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

pub fn post_async<IN, OUT>(
    url: &str,
    input: &IN,
    api_secret: Option<String>
) -> ClientResponseFuture<OUT> 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.