Acceptance With Grace. The best_case scenario__and honestly, the most common reaction__is that your boss will accept your resignation with understanding and sincere congratulations. Your manager will be happy to see that you're advancing your career and moving on to something bigger and better.
The Thank You. Next, it's always a good idea to thank your employer for the opportunity, describing some of the key things you've enjoyed and learned on the job. And yes, this is true even if you're thrilled to be leaving. Remember__you may need these people for a reference down the line, and leaving things on a good note will leave a lasting (positive) impression.