internal async Task SendDataAsync(Memory <byte> data) { var outputWriter = _pair.Application.Output; var frame = new Http3RawFrame(); frame.PrepareData(); frame.Length = data.Length; Http3FrameWriter.WriteHeader(frame, outputWriter); await SendAsync(data.Span); }
internal async Task SendDataAsync(Memory <byte> data, bool endStream = false) { var outputWriter = _pair.Application.Output; var frame = new Http3RawFrame(); frame.PrepareData(); frame.Length = data.Length; Http3FrameWriter.WriteHeader(frame, outputWriter); await SendAsync(data.Span); if (endStream) { await _pair.Application.Output.CompleteAsync(); } }