Marshal the host and port from HTTP headers and/or the PHP environment
public static marshalHostAndPort ( stdClass $accumulator, array $server, Psr\Http\Message\MessageInterface $request ) : array | ||
$accumulator | stdClass | |
$server | array | |
$request | Psr\Http\Message\MessageInterface | |
return | array | Array with two members, host and port, at indices 0 and 1, respectively |