protected function normalizeCustomHeaders()
    {
        $headers = [];

        // The spec requires that headers are sorted by header name.
        sort($this->headers);
        foreach ($this->headers as $header) {
            if ($this->request->hasHeader($header)) {
                $headers[] = strtolower($header) . ':' . $this->request->getHeaderLine($header);
            }
        }

        return $headers;
    }
protected function normalizeCustomHeaders()
    {
        $headers = [];

        // The spec requires that headers are sorted by header name.
        sort($this->headers);
        foreach ($this->headers as $header) {
            if ($this->request->hasHeader($header)) {
                $headers[] = strtolower($header) . ':' . $this->request->getHeaderLine($header);
            }
        }

        return $headers;
    }
protected function normalizeCustomHeaders ( ) { $ headers = [ ] ; // The spec requires that headers are sorted by header name. sort ( $ this -> headers ) ; foreach ( $ this -> headers as $ header ) { if ( $ this -> request -> hasHeader ( $ header ) ) { $ headers [ ] = strtolower ( $ header ) . ':' . $ this -> request -> getHeaderLine ( $ header ) ; } } return $ headers ; }
Normalizes the custom headers for signing.

@return string[]
An array of normalized headers.
Normalizes the custom headers for signing .