katana.units.web.cookies
— Check Cookies¶
View HTTP cookies
This unit will look through all of the different cookies on a website and look for a flag.
This unit inherits from katana.units.web.WebUnit
as that contains
lots of predefined variables that can be used throughout multiple web units.
-
class
katana.units.web.cookies.
Unit
(*args, **kwargs) Bases:
katana.units.web.WebUnit
-
GROUPS
= ['web', 'cookies'] These are “tags” for a unit. Considering it is a Web unit, “web” is included, as well as the name of the unit, “cookies”.
-
PRIORITY
= 30 Priority works with 0 being the highest priority, and 100 being the lowest priority. 50 is the default priorty. This unit has a moderately high priority due to speed and broadness of applicability
-
RECURSE_SELF
= False This unit should not recurse into itself. It would not make sense to recurse on cookies.
-
enumerate
() Yield cases. This function will look at the cookies in the requested page and yield each one, to be examined by the
evaluate
function.Returns: A generator, yielding a dictionary with the cookie information (i.e, name=value dictionary).
-
evaluate
(case) Run unit tasks given case which was returned from Unit.enumerate. This could happen in any thread or process of execution and should be stateless.
-