示例#1
0
    public ValueTask<FlushResult> WriteRstStreamAsync(Http2ErrorCode error)
    {
        lock (_dataWriterLock)
        {
            // Always send the reset even if the response body is _completed. The request body may not have completed yet.
            Stop();

            return _frameWriter.WriteRstStreamAsync(StreamId, error);
        }
    }