Merge pull request #4 from trs998/patch-1
[mdref/mdref-http] / http / Url / mod.md
1 # http\Url http\Url::mod(mixed $parts[, int $flags = http\Url::JOIN_PATH|http\Url::JOIN_QUERY|http\Url::SANITIZE_PATH)
2
3 Clone this URL and apply $parts to the cloned URL.
4
5 > **Note:** This method returns a clone (copy) of this instance.
6
7 ## Params:
8
9 * mixed $parts
10 New URL parts.
11 * Optional int $flags = http\Url::JOIN_PATH|http\Url::JOIN_QUERY|http\Url::SANITIZE_PATH
12 Modus operandi of URL construction. See http\Url constants.
13
14 ## Returns:
15
16 * http\Url, clone.
17
18 ## Throws:
19
20 * http\Exception\InvalidArgumentException
21 * http\Exception\BadUrlException
22
23 ## Changelog:
24
25 Version | Changes
26 --------|--------
27 2.5.0 | Added http\Url::SANITIZE_PATH to default flags.