How do I get a reference to the HTML memory buffer while the page is being constructed?

How do I get a reference to the HTML memory buffer while the page is being constructed?