Home Reference Source
public class | source

Request

You can directly use an instance of this class. request

Request class is similar to those in other frameworks allowing easy, quick access to param info.

Method Summary

Public Methods
public

Return current Uri string (sans domain)

public

getQuery(asString: Boolean): mixed

Return query as object or string

public

Return original URI object

public

Shallow clone query with updated params.

Public Methods

public getPath(): string source

Return current Uri string (sans domain)

Return:

string

public getQuery(asString: Boolean): mixed source

Return query as object or string

Params:

NameTypeAttributeDescription
asString Boolean

True, return as string (default), false as object

Return:

mixed

String or object

public getUri(): object source

Return original URI object

Return:

object

URI object

public setQuery(obj: object): string source

Shallow clone query with updated params. Will de-duplicate and return as string This will not replace the existing query string.

Params:

NameTypeAttributeDescription
obj object

New/updated query params

Return:

string

updated query