Async variant of :class:ServiceURL with auto-refreshing token.
Properties and HTTP helpers are async. Use with
:meth:AsyncSandboxClient.service or :meth:AsyncSandbox.service.
Example::
svc = await sb.service(port=3000)
resp = await svc.get("/api/data")
print(await svc.get_browser_url())
AsyncServiceURL(
self,
browser_url: str,
service_url: str,
token: str,
expires_at: str,
*,
_refresher: Optional[Callable[[], Awaitable[AsyncServiceURL]]] = None
)Return the raw JWT, refreshing if near expiry.
Return the base URL, refreshing if near expiry.
Return the browser auth URL, refreshing if near expiry.
Return the ISO 8601 expiration, refreshing if near expiry.
Make an async HTTP request to the service, injecting the auth header.
Async HTTP GET to the service.
Async HTTP POST to the service.
Async HTTP PUT to the service.
Async HTTP PATCH to the service.
Async HTTP DELETE to the service.
Create an AsyncServiceURL from API response dict.