SILENT KILLERPanel

Current Path: > > home > codekrsu > ameliagraphics.com > > wp-includes > Requests > src


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //home/codekrsu/ameliagraphics.com//wp-includes/Requests/src

NameTypeSizeLast ModifiedActions
Auth Directory - -
Cookie Directory - -
Exception Directory - -
Proxy Directory - -
Response Directory - -
Transport Directory - -
Utility Directory - -
Auth.php File 860 bytes December 16 2022 02:32:18.
Autoload.php File 9335 bytes April 05 2023 17:12:26.
Capability.php File 652 bytes April 05 2023 17:12:26.
Cookie.php File 15389 bytes March 25 2024 16:23:08.
Exception.php File 1114 bytes December 16 2022 02:32:18.
HookManager.php File 709 bytes December 16 2022 02:32:18.
Hooks.php File 3032 bytes October 12 2023 16:34:34.
IdnaEncoder.php File 12435 bytes April 05 2023 17:12:26.
Ipv6.php File 5639 bytes December 16 2022 02:32:18.
Iri.php File 29622 bytes October 12 2023 16:34:34.
Port.php File 1505 bytes December 16 2022 02:32:18.
Proxy.php File 867 bytes December 16 2022 02:32:18.
Requests.php File 34001 bytes March 25 2024 16:23:08.
Response.php File 4281 bytes April 05 2023 17:12:26.
Session.php File 9107 bytes October 12 2023 16:34:34.
Ssl.php File 5425 bytes December 16 2022 02:32:18.
Transport.php File 1544 bytes December 16 2022 02:32:18.

Reading File: //home/codekrsu/ameliagraphics.com//wp-includes/Requests/src/Port.php

<?php
/**
 * Port utilities for Requests
 *
 * @package Requests\Utilities
 * @since   2.0.0
 */

namespace WpOrg\Requests;

use WpOrg\Requests\Exception;
use WpOrg\Requests\Exception\InvalidArgument;

/**
 * Find the correct port depending on the Request type.
 *
 * @package Requests\Utilities
 * @since   2.0.0
 */
final class Port {

	/**
	 * Port to use with Acap requests.
	 *
	 * @var int
	 */
	const ACAP = 674;

	/**
	 * Port to use with Dictionary requests.
	 *
	 * @var int
	 */
	const DICT = 2628;

	/**
	 * Port to use with HTTP requests.
	 *
	 * @var int
	 */
	const HTTP = 80;

	/**
	 * Port to use with HTTP over SSL requests.
	 *
	 * @var int
	 */
	const HTTPS = 443;

	/**
	 * Retrieve the port number to use.
	 *
	 * @param string $type Request type.
	 *                     The following requests types are supported:
	 *                     'acap', 'dict', 'http' and 'https'.
	 *
	 * @return int
	 *
	 * @throws \WpOrg\Requests\Exception\InvalidArgument When a non-string input has been passed.
	 * @throws \WpOrg\Requests\Exception                 When a non-supported port is requested ('portnotsupported').
	 */
	public static function get($type) {
		if (!is_string($type)) {
			throw InvalidArgument::create(1, '$type', 'string', gettype($type));
		}

		$type = strtoupper($type);
		if (!defined("self::{$type}")) {
			$message = sprintf('Invalid port type (%s) passed', $type);
			throw new Exception($message, 'portnotsupported');
		}

		return constant("self::{$type}");
	}
}

SILENT KILLER Tool