

@_handle_object_not_found
def get(self, obj):
    '\n        Gets the information about the specified object.\n\n        This overrides the base behavior, since Swift uses HEAD to get\n        information, and GET to download the object.\n        '
    name = utils.get_name(obj)
    uri = ('/%s/%s' % (self.uri_base, name))
    (resp, resp_body) = self.api.method_head(uri)
    hdrs = resp.headers
    try:
        content_length = int(hdrs.get('content-length'))
    except (TypeError, ValueError):
        content_length = None
    data = {
        'name': name,
        'bytes': content_length,
        'content_type': hdrs.get('content-type'),
        'hash': hdrs.get('etag'),
        'last_modified': hdrs.get('last-modified'),
        'timestamp': hdrs.get('x-timestamp'),
    }
    return StorageObject(self, data, loaded=True)

dataset/ETHPy150Open rackspace/pyrax/pyrax/object_storage.py StorageObjectManager.get/original