private int OnHeaderValue(ArraySegment <byte> data) { _headerValue += Encoding.ASCII.GetString(data.Array, data.Offset, data.Count); if (!_parser.IsIncomplete()) { _msg.Headers.Add(_headerField, _headerValue); _headerField = null; _headerValue = null; } return(0); }