code: def handleHttpPost(request, endpoint):
      
      if request.mimetype and request.mimetype != MIMETYPE:
          raise exceptions.UnsupportedMediaTypeException()
      request = request.get_data()
      if request == '' or request is None:
          request = '{}'
      responseStr = endpoint(request)
      return getFlaskResponse(responseStr)
docs: Handles the specified HTTP POST request, which maps to the specified
      protocol handler endpoint and protocol request class.