canonical_uri ()

The request URI path.

Access

protected

Returns

Type

Description

string

The request URI path.

Source

Method defined in authentication/signature_v4query.class.php | Toggle source view (8 lines) | View on GitHub

protected function canonical_uri()
{
    $endpoint = str_replace(array('http://', 'https://'), '', $this->endpoint);

    $parsed_url = parse_url('http://' . $endpoint);

    return isset($parsed_url['path']) ? $parsed_url['path'] : '/';
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback