class documentation

class _TestCookieJar(CookieJar):

View In Hierarchy

A cookielib.CookieJar modified to inject and read cookie headers from and to wsgi environments, and wsgi application responses.
Method extract​_wsgi Extract the server's set-cookie headers as cookies into the cookie jar.
Method inject​_wsgi Inject the cookies as client headers into the server's wsgi environment.
def extract_wsgi(self, environ, headers):
Extract the server's set-cookie headers as cookies into the cookie jar.
Parameters
environ:WSGIEnvironmentUndocumented
headers:t.Union[Headers, t.List[t.Tuple[str, str]]]Undocumented
def inject_wsgi(self, environ):
Inject the cookies as client headers into the server's wsgi environment.
Parameters
environ:WSGIEnvironmentUndocumented