implement creating http get handler
format code