def __call__(self, method, url, **kwargs):
    try:
        body = kwargs['body']
    except KeyError:
        body = None
    try:
        headers = kwargs['headers']
    except KeyError:
        headers = {}
    _kwargs = sign_http_args(method, url, headers, body)
    shr = SignedHttpRequest(self.key)
    kwargs['Authorization'] = 'pop {}'.format(shr.sign(alg=self.alg, **_kwargs))
    return kwargs
def __call__(self, method, url, **kwargs):
    try:
        body = kwargs['body']
    except KeyError:
        body = None
    try:
        headers = kwargs['headers']
    except KeyError:
        headers = {}
    _kwargs = sign_http_args(method, url, headers, body)
    shr = SignedHttpRequest(self.key)
    kwargs['Authorization'] = 'pop {}'.format(shr.sign(alg=self.alg, **_kwargs))
    return kwargs