On this page
Requests_IRI::__construct( string|null $iri = null )
Create a new IRI object, from a specified string
Parameters
$iristring|null Optional-
Default:
null
Source
File: wp-includes/Requests/IRI.php. View all references
public function __construct($iri = null) {
$this->set_iri($iri);
}
Related
Uses
| Uses | Description |
|---|---|
| Requests_IRI::set_iri() wp-includes/Requests/IRI.php | Set the entire IRI. Returns true on success, false on failure (if there are any invalid characters). |
Used By
| Used By | Description |
|---|---|
| Requests::set_defaults() wp-includes/class-requests.php | Set the default values |
| Requests_IRI::absolutize() wp-includes/Requests/IRI.php | Create a new IRI object by resolving a relative IRI |
| Requests_Cookie_Jar::before_request() wp-includes/Requests/Cookie/Jar.php | Add Cookie header to a request if we have any |
| Requests_Cookie_Jar::before_redirect_check() wp-includes/Requests/Cookie/Jar.php | Parse all cookies from a response and attach them to the response |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/requests_iri/__construct