service(
self,
port: int,
*,
expires_in_seconds: int = 600,
headers: RequestHeaders| Name | Type | Description |
|---|---|---|
port* | int | |
expires_in_seconds | int | Default: 600 |
headers | RequestHeaders | Default: None |
Get an authenticated URL for a service running in this sandbox.
Returns an :class:AsyncServiceURL whose async accessors
auto-refresh the token transparently before it expires.
Port the service is listening on inside the sandbox.
Token TTL in seconds (1--86400, default 600).
Optional per-request header overrides.