Part of twisted.web.client View Source View In Hierarchy
CookieAgentextends the basic
Agentto add RFC-compliant handling of HTTP cookies. Cookies are written to and extracted from a
The same cookie jar instance will be used for any requests through this agent, mutating it whenever a Set-Cookie header appears in a response.
|Instance Variable||cookieJar||Initialized cookie jar to read cookies from and store cookies to. (type:
|Method||request||Issue a new request to the wrapped
|Instance Variable||_agent||Underlying Twisted Web agent to issue requests through. (type:
|Method||_extractCookies||Extract response cookies and store them in the cookie jar.|
Send a Cookie header if a cookie for
uri is stored
Cookies are automatically extracted and stored from requests.
'cookie' header appears in
will override the automatic cookie header obtained from the cookie jar.