This is a convenience array derived from the HTTP_METHODS object values.
It provides easy access to all supported methods as an array for iteration,
validation, and other array-based operations.
Note: This array is created once at module load time and should not
be modified. Use getHttpMethods() if you need a mutable copy.
Example
// Check if method is supported if (HTTP_METHODS_LIST.includes(method)) { // Method is valid }
// Iterate over all methods HTTP_METHODS_LIST.forEach(method=> { console.log(`Supported method: ${method}`); });
// Use in validation constisValid = HTTP_METHODS_LIST.includes(userInput);
Array containing all supported HTTP methods.
This is a convenience array derived from the HTTP_METHODS object values. It provides easy access to all supported methods as an array for iteration, validation, and other array-based operations.
Note: This array is created once at module load time and should not be modified. Use
getHttpMethods()
if you need a mutable copy.