Server IP : 104.21.14.48 / Your IP : 18.188.119.50 [ Web Server : Apache System : Linux b70eb322-3aee-0c53-7c82-0db91281f2c6.secureserver.net 6.1.90-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 2 12:09:22 EDT 2024 x86_64 User : root ( 0) PHP Version : 8.0.30.2 Disable Function : NONE Domains : 0 Domains MySQL : ON | cURL : ON | WGET : ON | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/wp-content/plugins/defender-security/vendor/nyholm/psr7-server/src/ |
Upload File : |
<?php declare(strict_types=1); namespace Nyholm\Psr7Server; use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Message\StreamInterface; /** * @author Tobias Nyholm <[email protected]> * @author Martijn van der Ven <[email protected]> */ interface ServerRequestCreatorInterface { /** * Create a new server request from the current environment variables. * Defaults to a GET request to minimise the risk of an \InvalidArgumentException. * Includes the current request headers as supplied by the server through `getallheaders()`. * If `getallheaders()` is unavailable on the current server it will fallback to its own `getHeadersFromServer()` method. * Defaults to php://input for the request body. * * @throws \InvalidArgumentException if no valid method or URI can be determined */ public function fromGlobals(): ServerRequestInterface; /** * Create a new server request from a set of arrays. * * @param array $server typically $_SERVER or similar structure * @param array $headers typically the output of getallheaders() or similar structure * @param array $cookie typically $_COOKIE or similar structure * @param array $get typically $_GET or similar structure * @param array|null $post typically $_POST or similar structure, represents parsed request body * @param array $files typically $_FILES or similar structure * @param StreamInterface|resource|string|null $body Typically stdIn * * @throws \InvalidArgumentException if no valid method or URI can be determined */ public function fromArrays( array $server, array $headers = [], array $cookie = [], array $get = [], ?array $post = null, array $files = [], $body = null ): ServerRequestInterface; /** * Get parsed headers from ($_SERVER) array. * * @param array $server typically $_SERVER or similar structure */ public static function getHeadersFromServer(array $server): array; }