Controller
isPut()
Signature
Section titled “Signature”isPut() — returns boolean
Available in: controller
Category: Miscellaneous Functions
Description
Section titled “Description”Checks whether the current HTTP request is a PUT request. PUT requests are typically used to update existing resources in RESTful APIs.
Examples
Section titled “Examples”if (isPut()) {
writeOutput("This request was submitted via PUT.");
} else {
writeOutput("This request is not a PUT request.");
}