httpendpoint: Avoid memory copy for static strings

Change-Id: Ic21347239977876db47ada16179fe99cc6f4aa67