def METHOD_NAME(self, urlfetch_resp, **response_kw):
    if is_prod_appengine():
        # Production GAE handles deflate encoding automatically, but does
        # not remove the encoding header.
        content_encoding = urlfetch_resp.headers.get('content-encoding')
        if content_encoding == 'deflate':
            del urlfetch_resp.headers['content-encoding']
    transfer_encoding = urlfetch_resp.headers.get('transfer-encoding')
    # We have a full response's content,
    # so let's make sure we don't report ourselves as chunked data.
    if transfer_encoding == 'chunked':
        encodings = transfer_encoding.split(",")
        encodings.remove('chunked')
        urlfetch_resp.headers['transfer-encoding'] = ','.join(encodings)
    return HTTPResponse(
        # In order for decoding to work, we must present the content as
        # a file-like object.
        body=BytesIO(urlfetch_resp.content),
        headers=urlfetch_resp.headers,
        status=urlfetch_resp.status_code,
        **response_kw
    )