Ensure request headers have a request ID. Set one if needed.

def _ensure_request_id_header(self):
        "Ensure request headers have a request ID. Set one if needed."
        if REQUEST_ID_HEADER not in self.request.headers:
            self.request.headers.add(REQUEST_ID_HEADER, uuid.uuid1().hex)