Encapsulating webserver output