File ManagerCurrent Directory: wp-content/plugins/backwpup/vendor/guzzle/guzzle/src/Guzzle/Parser/MessageLinux appserver-0d5e4f1e-php-cc8da225320a42ba9b7d66cba40b1f03 6.6.123+ #1 SMP PREEMPT_DYNAMIC Wed Mar 11 09:04:28 UTC 2026 x86_64Edit File: AbstractMessageParser.php <?php namespace Guzzle\Parser\Message; /** * Implements shared message parsing functionality */ abstract class AbstractMessageParser implements MessageParserInterface { /** * Create URL parts from HTTP message parts * * @param string $requestUrl Associated URL * @param array $parts HTTP message parts * * @return array */ protected function getUrlPartsFromMessage($requestUrl, array $parts) { // Parse the URL information from the message $urlParts = array( 'path' => $requestUrl, 'scheme' => 'http' ); // Check for the Host header if (isset($parts['headers']['Host'])) { $urlParts['host'] = $parts['headers']['Host']; } elseif (isset($parts['headers']['host'])) { $urlParts['host'] = $parts['headers']['host']; } else { $urlParts['host'] = null; } if (false === strpos($urlParts['host'], ':')) { $urlParts['port'] = ''; } else { $hostParts = explode(':', $urlParts['host']); $urlParts['host'] = trim($hostParts[0]); $urlParts['port'] = (int) trim($hostParts[1]); if ($urlParts['port'] == 443) { $urlParts['scheme'] = 'https'; } } // Check if a query is present $path = $urlParts['path']; $qpos = strpos($path, '?'); if ($qpos) { $urlParts['query'] = substr($path, $qpos + 1); $urlParts['path'] = substr($path, 0, $qpos); } else { $urlParts['query'] = ''; } return $urlParts; } } Upload File Directory Listing NameTypeSizeActions.. (Parent Directory)DirAbstractMessageParser.phpFile1.64 KB Rename | Delete | EditMessageParser.phpFile3.25 KB Rename | Delete | EditMessageParserInterface.phpFile695.00 B Rename | Delete | EditPeclHttpMessageParser.phpFile1.17 KB Rename | Delete | Edit