Query
Class to manage query part of URL
Constructor Summary
| Public Constructor | ||
| public |
constructor(f: string, ctx: object): instance |
|
Member Summary
| Public Members | ||
| public |
ctx: * |
|
Method Summary
| Public Methods | ||
| public |
Add a query string |
|
| public |
clear(): instance Remove the query string |
|
| public |
get(): array Get the query string |
|
| public |
Merge with the query string - replaces query string values if they exist |
|
| public |
set(or: obj): instance Set with the query string - replaces existing query string |
|
| public |
Get string representatio of the path or the uri |
|
Public Constructors
Public Members
public ctx: * source
Public Methods
public add(obj: object): instance source
Add a query string
Params:
| Name | Type | Attribute | Description |
| obj | object | {name: 'value'} |
Return:
| instance | for chaining |
public merge(obj: object): instance source
Merge with the query string - replaces query string values if they exist
Params:
| Name | Type | Attribute | Description |
| obj | object | {name: 'value'} |
Return:
| instance | for chaining |
public set(or: obj): instance source
Set with the query string - replaces existing query string
Params:
| Name | Type | Attribute | Description |
| or | obj | {string} ...q |
Return:
| instance | for chaining |