Resource Resolver

This article requires extensive knowledge of Resource Handlers

The Resource Resolver interface (See interface here) 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 Handlers.

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 here to see its source code.

Last updated