3 * @see https://github.com/zendframework/zend-diactoros for the canonical source repository
4 * @copyright Copyright (c) 2018 Zend Technologies USA Inc. (https://www.zend.com)
5 * @license https://github.com/zendframework/zend-diactoros/blob/master/LICENSE.md New BSD License
8 namespace Zend\Diactoros;
11 * Retrieve the request method from the SAPI parameters.
13 * @param array $server
16 function marshalMethodFromSapi(array $server)
18 return isset($server['REQUEST_METHOD']) ? $server['REQUEST_METHOD'] : 'GET';