Welcome to the Cookbook

loading...

5.5.2 Request Type Detection

RequestHandler also provides information about what type of HTTP request has been made and allowing you to respond to each Request Type.

isPost()

Returns true if the request is a POST request.

isPut()

Returns true if the request is a PUT request.

isGet()

Returns true if the request is a GET request.

isDelete()

Returns true if the request is a DELETE request.