How does aspirin reduce pain and inflammation in the body?

How does aspirin reduce pain and inflammation in the body?