Skip to content
RobeeeJay edited this page Aug 23, 2012 · 1 revision

This module processes the query string and places values inside it into the request.query object.

new fw.Query({ seperator: "&", equals: "=", query: "?", maxKeys: 100 });

All arguments are optional, and default to those shown above, apart from maxKeys which defaults to null.

You will probably never want or need to change any of these, but they are exposed just in case you want to.

Simple Example

var stackFull = new fw.Stack();

stackFull.append(new fw.Query());

After the above, the destination of a route can access form data inside request.query, so if for instance a request was submitted with a URL of "/path?searchstring=my%20luggage%20combination", then request.query.searchstring == "my luggage combination".

Clone this wiki locally