Handling http requests the right way.