Function

get-suggested-cache-key

Retrieves the default cache key for the request.

If the full key requires more than max-len bytes, an error.buffer-len error is returned containing the required size.

At the moment, HTTP cache keys must always be 32 bytes.

get-suggested-cache-key: func(request: borrow​<request>, max-len: u64) -> result​<list​<u8>, error>;