def prepare_response(self, request, cached):
<EOL>if "<STR_LIT:*>" in cached.get("<STR_LIT>", {}):<EOL><INDENT>return<EOL><DEDENT>for header, value in cached.get("<STR_LIT>", {}).items():<EOL><INDENT>if request.headers.get(header, None) != value:<EOL><INDENT>return<EOL><DEDENT><DEDENT>body_raw = cached["<STR_LIT>"].pop("<STR_LIT:body>")<EOL>headers = CaseInsensitiveDict(data=cached["<STR_LIT>"]["<STR_LIT>"])<EOL>if headers.get("<STR_LIT>", "<STR_LIT>") == "<STR_LIT>":<EOL><INDENT>headers.pop("<STR_LIT>")<EOL><DEDENT>cached["<STR_LIT>"]["<STR_LIT>"] = headers<EOL>try:<EOL><INDENT>body = io.BytesIO(body_raw)<EOL><DEDENT>except TypeError:<EOL><INDENT>body = io.BytesIO(body_raw.encode("<STR_LIT:utf8>"))<EOL><DEDENT>return HTTPResponse(body=body, preload_content=False, **cached["<STR_LIT>"])<EOL>
Verify our vary headers match and construct a real urllib3
        HTTPResponse object.