cleaned up the http_example, adding macros to make symbol and structure definition clearer