This function lists all of Apache's MIME handlers.
Important:
When you disable the WebServer role, the system disables this function.
type required | string Whether to retrieve system or user handlers. Example: |
HTTP Request was successful.
apiversion | integer The version of the API. |
func | string The name of the method called. |
module | string The name of the module called. |
object |
uapi --output=jsonpretty \ --user=username \ Mime \ list_handlers \ type='user'
{- "apiversion": 3,
- "func": "list_handlers",
- "module": "Mime",
- "result": {
- "data": [
- {
- "extension": ".foo",
- "handler": "text-foo",
- "origin": "user"
}
], - "errors": null,
- "messages": null,
- "metadata": {
- "transformed": 1
}, - "status": 1,
- "warnings": null
}
}