Replaced the use of macros by the use of templates in src/httpserverrequest.cpp