Use pointer for buffer to save needless nulling
Handle trailing garbage and refuse HTTP > 1.1