Delegate FileRequestHandlerCallback
A callback used to handle a request in FileModule.
Namespace: EmbedIO.Files
Syntax
public delegate Task FileRequestHandlerCallback(IHttpContext context, MappedResourceInfo info);
Parameters
| Type | Name | Description |
|---|---|---|
| IHttpContext | context | An IHttpContext interface representing the context of the request. |
| MappedResourceInfo | info | If the requested path has been successfully mapped to a resource (file or directory), the result of the mapping; otherwise, null. |
Returns
| Type | Description |
|---|---|
| Task | A |