Exemplo n.º 1
0
            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);
            }
Exemplo n.º 2
0
            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();
                }
            }