Make parse_headers function part of public API

Signed-off-by: Ben Agricola <bagricola@squiz.co.uk>