# Resource Resolver

{% hint style="info" %}
This article requires extensive knowledge of [Resource Handlers](https://mandarineframework.gitbook.io/mandarine-ts/mandarine-core/resource-handlers/resource-handler)
{% endhint %}

The Resource Resolver interface ([See interface here](https://doc.deno.land/https/raw.githubusercontent.com/mandarineorg/mandarinets/master/mvc-framework/mandarine-mvc.ns.ts#MandarineMvc.HTTPResolvers.ResourceResolver)) 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](https://mandarineframework.gitbook.io/mandarine-ts/mandarine-core/resource-handlers/resource-handler).

## Methods

| Name    | Description                  | Arguments                                                                                                                                                                                                                                                               |
| ------- | ---------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| resolve | Resolves the resolve handler | <p>httpContext: Context of the incoming HTTP request (This parameter is injected by Mandarine's Resource Handler Middleware). </p><p>resourcePath: It is the path of the requested resource (This parameter is injected by Mandarine's Resource Handler Middleware)</p> |

## Mandarine Default Resource Resolver

Mandarine has a default resource resolves which is used to handle static content. [Click here](https://raw.githubusercontent.com/mandarineorg/mandarinets/master/mvc-framework/core/internal/components/resource-handler-registry/mandarineResourceResolver.ts) to see its source code.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mandarineframework.gitbook.io/mandarine-ts/v1.0.1/mandarine-core/resource-handlers/resource-resolver.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
