virtual protected void End() { HeadParser.Unpipe(); BodyParser.Unpipe(); if (!Base.ReadableEnded && !Upgrading) { Base.Unpipe(); } HeadSerializer.Unpipe(); BodySerializer.Unpipe(); HeadParser.End(); HeadSerializer.End(); BodyParser.End(); BodySerializer.End(); OnEnd?.Invoke(); }