$48 GRAYBYTE WORDPRESS FILE MANAGER $44

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/var/softaculous/sitepad/editor/site-inc/Requests/

HOME
Current File : /var/softaculous/sitepad/editor/site-inc/Requests//Response.php
<?php
/**
 * HTTP response class
 *
 * Contains a response from Requests::request()
 * @package Requests
 */

/**
 * HTTP response class
 *
 * Contains a response from Requests::request()
 * @package Requests
 */
class Requests_Response {
	/**
	 * Constructor
	 */
	public function __construct() {
		$this->headers = new Requests_Response_Headers();
		$this->cookies = new Requests_Cookie_Jar();
	}

	/**
	 * Response body
	 *
	 * @var string
	 */
	public $body = '';

	/**
	 * Raw HTTP data from the transport
	 *
	 * @var string
	 */
	public $raw = '';

	/**
	 * Headers, as an associative array
	 *
	 * @var Requests_Response_Headers Array-like object representing headers
	 */
	public $headers = array();

	/**
	 * Status code, false if non-blocking
	 *
	 * @var integer|boolean
	 */
	public $status_code = false;

	/**
	 * Protocol version, false if non-blocking
	 * @var float|boolean
	 */
	public $protocol_version = false;

	/**
	 * Whether the request succeeded or not
	 *
	 * @var boolean
	 */
	public $success = false;

	/**
	 * Number of redirects the request used
	 *
	 * @var integer
	 */
	public $redirects = 0;

	/**
	 * URL requested
	 *
	 * @var string
	 */
	public $url = '';

	/**
	 * Previous requests (from redirects)
	 *
	 * @var array Array of Requests_Response objects
	 */
	public $history = array();

	/**
	 * Cookies from the request
	 *
	 * @var Requests_Cookie_Jar Array-like object representing a cookie jar
	 */
	public $cookies = array();

	/**
	 * Is the response a redirect?
	 *
	 * @return boolean True if redirect (3xx status), false if not.
	 */
	public function is_redirect() {
		$code = $this->status_code;
		return in_array($code, array(300, 301, 302, 303, 307)) || $code > 307 && $code < 400;
	}

	/**
	 * Throws an exception if the request was not successful
	 *
	 * @throws Requests_Exception If `$allow_redirects` is false, and code is 3xx (`response.no_redirects`)
	 * @throws Requests_Exception_HTTP On non-successful status code. Exception class corresponds to code (e.g. {@see Requests_Exception_HTTP_404})
	 * @param boolean $allow_redirects Set to false to throw on a 3xx as well
	 */
	public function throw_for_status($allow_redirects = true) {
		if ($this->is_redirect()) {
			if (!$allow_redirects) {
				throw new Requests_Exception('Redirection not allowed', 'response.no_redirects', $this);
			}
		}
		elseif (!$this->success) {
			$exception = Requests_Exception_HTTP::get_class($this->status_code);
			throw new $exception(null, $this);
		}
	}
}


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
21 Feb 2026 2.55 AM
root / root
0755
Auth
--
21 Feb 2026 2.55 AM
root / root
0755
Cookie
--
21 Feb 2026 2.55 AM
root / root
0755
Exception
--
21 Feb 2026 2.55 AM
root / root
0755
Proxy
--
21 Feb 2026 2.55 AM
root / root
0755
Response
--
21 Feb 2026 2.55 AM
root / root
0755
Transport
--
21 Feb 2026 2.55 AM
root / root
0755
Utility
--
21 Feb 2026 2.55 AM
root / root
0755
Auth.php
0.791 KB
18 Feb 2026 11.32 PM
root / root
0644
Cookie.php
12.553 KB
18 Feb 2026 11.32 PM
root / root
0644
Exception.php
1.002 KB
18 Feb 2026 11.32 PM
root / root
0644
Hooker.php
0.691 KB
18 Feb 2026 11.32 PM
root / root
0644
Hooks.php
1.366 KB
18 Feb 2026 11.32 PM
root / root
0644
IDNAEncoder.php
11.06 KB
18 Feb 2026 11.32 PM
root / root
0644
IPv6.php
4.812 KB
18 Feb 2026 11.32 PM
root / root
0644
IRI.php
27.8 KB
18 Feb 2026 11.32 PM
root / root
0644
Proxy.php
0.794 KB
18 Feb 2026 11.32 PM
root / root
0644
Response.php
2.446 KB
18 Feb 2026 11.32 PM
root / root
0644
SSL.php
3.928 KB
18 Feb 2026 11.32 PM
root / root
0644
Session.php
6.985 KB
18 Feb 2026 11.32 PM
root / root
0644
Transport.php
1.191 KB
18 Feb 2026 11.32 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF