Pular para o conteúdo

pwa_info

Este conteúdo não está disponível em sua língua ainda.

(Introduced in 2026.10.13-release+4119.)

The pwa_info method reports request counters for the server’s pwa ports, which serve on-ledger AppLoader documents over HTTP. This is an admin method.

{
"command": "pwa_info",
"reset": false,
"flush_dns": false
}

Command line:

xahaud pwa_info [reset] [flush_dns]
FieldJSON TypeRequired?Description
resetBooleanNoIf true, zero the counters after reading them.
flush_dnsBooleanNoIf true, drop every cached custom-domain DNS answer.
{
"result": {
"outcomes": {
"served": "1520",
"not_modified": "310",
"redirected": "42",
"not_found": "7",
"...": "0"
},
"requests": "1879",
"bytes_served": "3112960",
"ports": [
{
"name": "port_pwa",
"ip": "127.0.0.1",
"port": 8088,
"domains": ["pwapp.example"],
"custom_domains": false
}
],
"status": "success"
}
}
FieldJSON TypeDescription
outcomesObjectEach request outcome mapped to a count. The outcome names are listed in Serving PWA Apps.
requestsStringThe total number of requests.
bytes_servedStringThe total number of document bytes served.
portsArrayOne entry per pwa port, with its name, ip, port, domains and custom_domains.
dns_flushedString(Only with flush_dns: true) The number of cached custom-domain answers that were dropped.

All counters are 64-bit numbers encoded as strings.