PyXWF.HTTPUtils – Utility functions for HTTP

PyXWF.HTTPUtils.format_http_date(datetime)[source]

Convert the datetime instance datetime into a string formatted to be compliant with the HTTP RFC.

Note

This uses wsgiref.handlers.format_date_time().

PyXWF.HTTPUtils.parse_http_date(httpdate)[source]

Parse the string httpdate as a date according to RFC 2616 and return the resulting datetime instance.

Note

This uses email.utils.parsedate().

Previous topic

PyXWF.utils – Miscellaneous

Next topic

PyXWF.TimeUtils – Utility functions for date/time related things

This Page