Пример #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
 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)),
     )