src/Perry/Fetcher/FileFetcher.php
private function getOpts($representation)
    {
        $opts = array(
            'http' => array(
                'method' => "GET",
            ),
            'socket' => [
                'bindto' => Setup::$bindToIp
            ]
        );

        if (is_null($representation)) {
            $header = "Accept-language: en\r\nUser-Agent: Perry/".Perry::$version.' '.Setup::$userAgent."\r\n";
        } else {
            $header = "Accept-language: en\r\nUser-Agent: Perry/".
                Perry::$version.' '.Setup::$userAgent."\r\nAccept: application/$representation+json\r\n";
        }

        $opts['http']['header'] = $header;

        $opts = array_merge_recursive(Setup::$fetcherOptions, $opts);

        return $opts;
    }
private function getOpts($representation)
    {
        $opts = array(
            'http' => array(
                'method' => "GET",
            ),
            'socket' => [
                'bindto' => Setup::$bindToIp
            ]
        );

        if (is_null($representation)) {
            $header = "Accept-language: en\r\nUser-Agent: Perry/".Perry::$version.' '.Setup::$userAgent."\r\n";
        } else {
            $header = "Accept-language: en\r\nUser-Agent: Perry/".
                Perry::$version.' '.Setup::$userAgent."\r\nAccept: application/$representation+json\r\n";
        }

        $opts['http']['header'] = $header;

        $opts = array_merge_recursive(Setup::$fetcherOptions, $opts);

        return $opts;
    }
form the opts array

@param string $representation
@return array