Variable HTTP_METHODS_LISTConst

HTTP_METHODS_LIST: HttpMethod[] = ...

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.

// 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
const isValid = HTTP_METHODS_LIST.includes(userInput);