Description
This function lists Apache's handlers.
Warning:
We strongly recommend that you use the following UAPI function instead of this function:
-
Mime::list_handlers
— This function lists all of Apache's MIME handlers.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
system |
string |
Whether to show system-defined MIME types. |
|
no |
user |
string |
Whether to show user-defined MIME types. |
|
no |
Returns
Return |
Type |
Description |
Possible values |
Example |
extension |
string |
The file extension. |
A valid file extension. |
.txt |
handler |
string |
The name of the handler. |
A valid Apache handler type, which contains a hyphen. |
plain-text |
origin |
string |
Whether the handler is user-defined or system-defined. |
|
user |
ext |
string |
The file extension. |
A valid file extension. |
.txt |
reason |
string |
A reason for failure. Note: This function only returns areason value if it failed. |
A string that describes the error. |
This is an error message. |
result |
boolean |
Whether the function succeeded. |
|
1 |