import re import itertools _HTML_TYPES = ('text/html', 'application/xhtml+xml') _SUPPORTED_TRANSFORMS = ['PUT', 'DELETE'] _FORM_RE = re.compile(r'((