refine macros of HTTP