typo, parameter and type fixes
[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:***
6 > This method returns a clone (copy) of this instance.
7
8 ## Params:
9
10 * mixed $parts
11 New URL parts.
12 * Optional int $flags = http\Url::JOIN_PATH|http\Url::JOIN_QUERY|http\Url::SANITIZE_PATH
13 Modus operandi of URL construction. See http\Url constants.
14
15 ## Returns:
16
17 * http\Url, clone.
18
19 ## Throws:
20
21 * http\Exception\InvalidArgumentException
22 * http\Exception\BadUrlException
23
24 ## Changelog:
25
26 0. v2.5.0
27 * Added http\Url::SANITIZE_PATH to default flags.