'Execute the best-match processor for the given media type.'

def process(self):

    proc = None
    ct = self.content_type.value
    try:
        proc = self.processors[ct]
    except KeyError:
        toptype = ct.split('/', 1)[0]
        try:
            proc = self.processors[toptype]
        except KeyError:
            pass
    if (proc is None):
        self.default_proc()
    else:
        proc(self)
