Uses
Uses | Description |
---|---|
wp-includes/Requests/Cookie/Jar.php: Requests_Cookie_Jar::__construct() | Create a new jar |
Create a new session
(string|null) (Optional) Base URL for requests
Default value: null
(array) (Optional) Default headers for requests
Default value: array()
(array) (Optional) Default data for requests
Default value: array()
(array) (Optional) Default options for requests
Default value: array()
File: wp-includes/Requests/Session.php
public function __construct($url = null, $headers = array(), $data = array(), $options = array()) { $this->url = $url; $this->headers = $headers; $this->data = $data; $this->options = $options; if (empty($this->options['cookies'])) { $this->options['cookies'] = new Requests_Cookie_Jar(); } }
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/requests_session/__construct