API / request

Provides methods to get all information from the request

Name Description
getMethod Returns the request method
getHeader Returns a value from the request header
getUriFragment Through this method it is possible to access dynamic parts of the uri. A dynamic part must be defined in the route as :id i.e. /news/:id
getUriFragments Returns all available uri fragments as object
getParameter Returns a single request parameter. I.e. if the requested url was /news?foo=bar you can access the foo parameter through request.getParameter('foo')
getParameters Returns all available request parameters as object
getBody Returns the request body as object