Skip to main content

request_credentials

Function request_credentials 

Source
async fn request_credentials<Keep>(
    request: RequestBuilder,
    ttl: Duration,
    keep: Keep,
) -> Result<Response>
where Keep: Fn(&str) -> bool,
Expand description

Sends the request and converts the provider’s answer into credentials.

The answer must parse as one of the accepted shapes, and only the TURN URIs keep accepts remain.