$13 GRAYBYTE WORDPRESS FILE MANAGER $70

SERVER : in-mum-web1330.main-hosting.eu #1 SMP Mon Feb 10 22:45:17 UTC 2025
SERVER IP : 93.127.173.11 | ADMIN IP 216.73.216.215
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/home/u550391411/domains/mstayna.in/public_html/wp-includes/Requests/src/

HOME
Current File : /home/u550391411/domains/mstayna.in/public_html/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}");
	}
}

Current_dir [ WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
1 Jun 2024 9.54 AM
u550391411 / o200927086
0755
Auth
--
1 Jun 2024 9.54 AM
u550391411 / o200927086
0755
Cookie
--
1 Jun 2024 9.54 AM
u550391411 / o200927086
0755
Exception
--
1 Jun 2024 9.54 AM
u550391411 / o200927086
0755
Proxy
--
1 Jun 2024 9.54 AM
u550391411 / o200927086
0755
Response
--
1 Jun 2024 9.54 AM
u550391411 / o200927086
0755
Transport
--
1 Jun 2024 9.54 AM
u550391411 / o200927086
0755
Utility
--
1 Jun 2024 9.54 AM
u550391411 / o200927086
0755
Auth.php
0.84 KB
1 Jun 2024 9.54 AM
u550391411 / o200927086
0644
Autoload.php
9.116 KB
1 Jun 2024 9.54 AM
u550391411 / o200927086
0644
Capability.php
0.637 KB
1 Jun 2024 9.54 AM
u550391411 / o200927086
0644
Cookie.php
15.028 KB
16 Jun 2025 2.13 PM
u550391411 / o200927086
0644
Exception.php
1.088 KB
1 Jun 2024 9.54 AM
u550391411 / o200927086
0644
HookManager.php
0.692 KB
1 Jun 2024 9.54 AM
u550391411 / o200927086
0644
Hooks.php
2.961 KB
1 Jun 2024 9.54 AM
u550391411 / o200927086
0644
IdnaEncoder.php
12.144 KB
1 Jun 2024 9.54 AM
u550391411 / o200927086
0644
Ipv6.php
5.507 KB
1 Jun 2024 9.54 AM
u550391411 / o200927086
0644
Iri.php
28.928 KB
1 Jun 2024 9.54 AM
u550391411 / o200927086
0644
Port.php
1.47 KB
1 Jun 2024 9.54 AM
u550391411 / o200927086
0644
Proxy.php
0.847 KB
1 Jun 2024 9.54 AM
u550391411 / o200927086
0644
Requests.php
33.204 KB
16 Jun 2025 2.13 PM
u550391411 / o200927086
0644
Response.php
4.181 KB
1 Jun 2024 9.54 AM
u550391411 / o200927086
0644
Session.php
8.894 KB
1 Jun 2024 9.54 AM
u550391411 / o200927086
0644
Ssl.php
5.298 KB
1 Jun 2024 9.54 AM
u550391411 / o200927086
0644
Transport.php
1.508 KB
1 Jun 2024 9.54 AM
u550391411 / o200927086
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF