How to change the download link when download a file?

Like add something to the url.
I want to develop a plugin to implement this.
What kind of Event should register a listener?