'Apply method.
@param r: the S3Request
@param attr: controller options for this request'

def apply_method(self, r, **attr):

    output = dict()
    if (r.http == 'GET'):
        output = self.export(r, **attr)
    else:
        r.error(405, current.ERROR.BAD_METHOD)
    return output
