Resource Resolver

circle-info

This article requires extensive knowledge of Resource Handlersarrow-up-right

The Resource Resolver interface (See interface herearrow-up-right) is responsible for resolving a Resource Handler and finally returning the requested resource in form of Uint8Array which will then be reflected on the response body. The Resource Resolver implementation is used in Resource Handlersarrow-up-right.

Methods

Name

Description

Arguments

resolve

Resolves the resolve handler

httpContext: Context of the incoming HTTP request (This parameter is injected by Mandarine's Resource Handler Middleware).

resourcePath: It is the path of the requested resource (This parameter is injected by Mandarine's Resource Handler Middleware)

Mandarine Default Resource Resolver

Mandarine has a default resource resolves which is used to handle static content. Click herearrow-up-right to see its source code.

Last updated

Was this helpful?