OpenQuizz
Une application de gestion des contenus pédagogiques
_TestCookieJar Class Reference
Inheritance diagram for _TestCookieJar:
Collaboration diagram for _TestCookieJar:

Public Member Functions

def inject_wsgi (self, environ)
 
def extract_wsgi (self, environ, headers)
 

Detailed Description

A cookielib.CookieJar modified to inject and read cookie headers from
and to wsgi environments, and wsgi application responses.

Member Function Documentation

◆ extract_wsgi()

def extract_wsgi (   self,
  environ,
  headers 
)
Extract the server's set-cookie headers as cookies into the
cookie jar.

◆ inject_wsgi()

def inject_wsgi (   self,
  environ 
)
Inject the cookies as client headers into the server's wsgi
environment.

The documentation for this class was generated from the following file: