* Parses the field body containing a value with parameters into {@link RawBody}.
*
* @param field unstructured (raw) field
*/
public RawBody parseRawBody(final RawField field) {
ByteSequence buf = field.getRaw();
int pos = field.getDelimiterIdx() + 1;
if (buf == null) {
String body = field.getBody();
if (body == null) {
return new RawBody("", null);
}
buf = ContentUtil.encode(body);
pos = 0;
}
ParserCursor cursor = new ParserCursor(pos, buf.length());
return parseRawBody(buf, cursor);
}