initialize
[mdref/mdref-http] / http / Params / __construct.md
1 # void http\Params::__construct([mixed $params = NULL[, mixed $ps = http\Params::DEF_PARAM_SEP[, mixed $as = http\Params::DEF_ARG_SEP[, mixed $vs = http\Params::DEF_VAL_SEP[, int $flags = http\Params::PARSE_DEFAULT]]]]])
2
3 Instantiate a new HTTP (header) parameter set.
4
5 ## Params:
6
7 * Optional ```mixed $params```
8 Pre-parsed parameters or a string to be parsed.
9 * Optional ```mixed $ps```
10 The parameter separator(s).
11 * Optional ```mixed $as```
12 The argument separator(s).
13 * Optional ```mixed $vs```
14 The value separator(s).
15 * Optional ```int $flags```
16 The modus operandi. See http\Params::PARSE_* constants.
17
18 ## Throws:
19
20 * http\Exception
21