resolve

open fun resolve(request: HttpRequest<*>, moduleId: String? = null): ServerAsset?

Resolve the asset requested by the provided HTTP request; if the corresponding file cannot be found, return null, and otherwise, throw an error.

Return

Resolved server asset, or null if one could not be located at the calculated path provided by request.

Parameters

request

HTTP request to interpret into a relative asset path and return a descriptor for.

moduleId

Resolved asset module ID to serve, if known; if null, one will be resolved from the request.