Mini Shell

Direktori : /home/admin/web/mcpv.demarco.ddnsfree.com/public_html/wp-includes/Requests/src/
Upload File :
Current File : /home/admin/web/mcpv.demarco.ddnsfree.com/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}");
	}
}
December 29, 2020 – Page 3 – Base de données MCPV "Prestataires"

Day: December 29, 2020

Our selection is not just about imitating the look of luxury

NYC counterfeit bust seizes $1B in fake handbags and shoes Around Christmastime people are usually selling a lot more of their shoes. This customer wanted to sell two pairs of Yeezy DS 350 V2 shoes with different color schemes. The customer isn’t happy cheap fake shoes, but he’s not keeping up with the prices. That’s…

Read More

Some single-use male masturbators just like the Tenga Easy

For Discerning Adults Certified sex therapist Bat Sheva Marcus Charming Sexy Long Sleeves Midriff Lace Jampsuit For Ladies New Design Lace Spliecd With Mesh Tediies Bright-colored Deep V Neck Halter Lace Suit Jampsuit, Ph.D., MSW New Fashion Topless One-piece Deep V Neck Lingeries, MPH Adult Enchanting Lace Bandaged Low-cut Teddies, notes this is a brand…

Read More