Let us walk on the 3-isogeny graph
Loading...
Searching...
No Matches
pip._vendor.cachecontrol.heuristics Namespace Reference

Data Structures

class  BaseHeuristic
 
class  ExpiresAfter
 
class  LastModified
 
class  OneDayCache
 

Functions

 expire_after (delta, date=None)
 
 datetime_to_header (dt)
 

Variables

str TIME_FMT = "%a, %d %b %Y %H:%M:%S GMT"
 

Function Documentation

◆ datetime_to_header()

datetime_to_header (   dt)

Definition at line 20 of file heuristics.py.

20def datetime_to_header(dt):
21 return formatdate(calendar.timegm(dt.timetuple()))
22
23
for i

References i.

Referenced by OneDayCache.update_headers(), and ExpiresAfter.update_headers().

Here is the caller graph for this function:

◆ expire_after()

expire_after (   delta,
  date = None 
)

Definition at line 15 of file heuristics.py.

15def expire_after(delta, date=None):
16 date = date or datetime.utcnow()
17 return date + delta
18
19

References i.

Referenced by OneDayCache.update_headers(), and ExpiresAfter.update_headers().

Here is the caller graph for this function:

Variable Documentation

◆ TIME_FMT

str TIME_FMT = "%a, %d %b %Y %H:%M:%S GMT"

Definition at line 12 of file heuristics.py.