def extract_wsgi(self, environ, headers): """Extract the server's set-cookie headers as cookies into the cookie jar. """ self.extract_cookies( _TestCookieResponse(headers), _UrllibRequest(get_current_url(environ)) )
def extract_wsgi(self, environ: WSGIEnvironment, headers: AnyHeaders) -> None: """Extract the server's set-cookie headers as cookies into the cookie jar. """ self.extract_cookies( _TestCookieResponse(headers), # type: ignore _UrllibRequest(get_current_url(environ)), )
def extract_wsgi( self, environ: "WSGIEnvironment", headers: t.Union[Headers, t.List[t.Tuple[str, str]]], ) -> None: """Extract the server's set-cookie headers as cookies into the cookie jar. """ self.extract_cookies( _TestCookieResponse(headers), # type: ignore _UrllibRequest(get_current_url(environ)), )