4 * @see https://github.com/laminas/laminas-diactoros for the canonical source repository
5 * @copyright https://github.com/laminas/laminas-diactoros/blob/master/COPYRIGHT.md
6 * @license https://github.com/laminas/laminas-diactoros/blob/master/LICENSE.md New BSD License
9 declare(strict_types=1);
11 namespace Laminas\Diactoros;
14 * Retrieve the request method from the SAPI parameters.
16 function marshalMethodFromSapi(array $server) : string
18 return $server['REQUEST_METHOD'] ?? 'GET';