- unsigned colon=str.find(':', start);
- if(colon>lf)
- throw InvalidParameterValue("No colon in header");
-
- result.set_header(str.substr(start, colon-start), strip(str.substr(colon+1, lf-colon-1)));
-
- start=lf+1;
- }
-
- result.parse_data(str.substr(lf+1));