Functions
The following functions are available globally.
-
Process GET or POST query into a dictionary.
Declaration
Swift
public func process(query: String) -> [String:String]
Parameters
query
Query string to process. For example:
foo=bar&bar=foo
.Return Value
- Processed dictionary.
-
Read POST query if there is one.
Declaration
Swift
public func readPost()
-
Returns
true
if given key is set for query for given method.Declaration
Swift
public func isKey(_ key: String, setForMethod method: Method) -> Bool
Parameters
key
Key to check.
method
Method of query where search
key
.