Skip to main content

post_json_until_result

Function post_json_until_result 

Source
async fn post_json_until_result<T: DeserializeOwned>(
    endpoint: &str,
    body: Value,
    rest: &RestClient,
    timing: &Timing,
) -> Result<T, OnePasswordError>
Expand description

POSTs until the endpoint answers a body instead of the empty 200 it sends while the enrolled device has not replied yet. The web frontend retries the same way.