Added utility functions to simplify http development