What is the best way to treat toxic players in a match?

I played a game where my jungler flamed at me and i could sadly not rise above it and flamed back, but i thought that there must be a better way of solving this, because even when i wasn't typing back anymore, he kept typing about how bad i am etc. So i started responding with "love you too" or "*smooch*". It's silly, i know but it made him stop flaming (probably realizing how ridiculous it had become) and we somehow turned around and won the game. What is the best way to deal with toxic players and does anyone knows if there is a way of dealing with them that Riot supports?
Report as:
Offensive Spam Harassment Incorrect Board