예제 #1
0
 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))
     )
예제 #2
0
파일: test.py 프로젝트: wym42/werkzeug
 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)),
     )
예제 #3
0
 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)),
     )