optimized parse_body/3 and parse_headers/3.