Added function to map a record to HTTP headers.