Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ SendRstStreamAsync()

Task System.Net.Http.Http2Connection.SendRstStreamAsync ( int streamId,
Http2ProtocolErrorCode errorCode )
inlineprivate

Definition at line 2598 of file Http2Connection.cs.

2599 {
2601 {
2602 if (System.Net.NetEventSource.Log.IsEnabled())
2603 {
2604 s.thisRef.Trace(s.streamId, $"Started writing. {"errorCode"}={s.errorCode}", "SendRstStreamAsync");
2605 }
2606 Span<byte> span = writeBuffer.Span;
2607 FrameHeader.WriteTo(span, 4, FrameType.RstStream, FrameFlags.None, s.streamId);
2608 BinaryPrimitives.WriteInt32BigEndian(span.Slice(9), (int)s.errorCode);
2609 return true;
2610 });
2611 }
static void WriteInt32BigEndian(Span< byte > destination, int value)
Http2Connection(HttpConnectionPool pool, Stream stream)
static readonly System.Net.NetEventSource Log

References System.Net.NetEventSource.Log, System.s, System.Buffers.Binary.BinaryPrimitives.WriteInt32BigEndian(), and System.Net.Http.Http2Connection.FrameHeader.WriteTo().

Referenced by System.Net.Http.Http2Connection.Http2Stream.SendReset().