HttpServerCapabilities
Defined in: src/client/capabilities.ts:27
HTTP server capability discovery.
Mirrors Python’s http_capabilities(): probes OPTIONS {prefix}/health
and reads three response headers:
VGI-Max-Request-Bytes— server-enforced inline request capVGI-Upload-URL-Support— “true” when the server vends upload URLsVGI-Max-Upload-Bytes— cap on out-of-band upload sizeVGI-Max-Response-Bytes— server-side response capVGI-Accept-Max-Response-Bytes-Support— negotiated client cap support
Honours Cache-Control: max-age=N for refresh scheduling.
Properties
Section titled “Properties”acceptMaxResponseBytesSupport
Section titled “acceptMaxResponseBytesSupport”acceptMaxResponseBytesSupport: boolean;Defined in: src/client/capabilities.ts:37
Whether the server honors VGI-Accept-Max-Response-Bytes.
cacheExpiresAt
Section titled “cacheExpiresAt”cacheExpiresAt: number | null;Defined in: src/client/capabilities.ts:39
Monotonic-time-ish epoch (ms) at which this snapshot should be re-probed.
maxRequestBytes
Section titled “maxRequestBytes”maxRequestBytes: number | null;Defined in: src/client/capabilities.ts:29
Server’s advertised max inline request body size (bytes).
maxResponseBytes
Section titled “maxResponseBytes”maxResponseBytes: number | null;Defined in: src/client/capabilities.ts:35
Server/hosting maximum response bytes, when advertised.
maxUploadBytes
Section titled “maxUploadBytes”maxUploadBytes: number | null;Defined in: src/client/capabilities.ts:33
Cap on the size of an externalized upload (bytes).
uploadUrlSupport
Section titled “uploadUrlSupport”uploadUrlSupport: boolean;Defined in: src/client/capabilities.ts:31
Whether the server vends upload URLs via __upload_url__/init.
