code: def get_http_info(self, request):
          
          if self.is_json_type(request.mimetype):
              retriever = self.get_json_data
          else:
              retriever = self.get_form_data
          return self.get_http_info_with_retriever(request, retriever)
docs: Determine how to retrieve actual data by using request.mimetype.