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

◆ TryReadNextLine()

bool System.Net.Http.HttpConnection.TryReadNextLine ( out ReadOnlySpan< byte > line)
inlineprivate

Definition at line 2181 of file HttpConnection.cs.

2182 {
2184 int num = span.IndexOf<byte>(10);
2185 if (num < 0)
2186 {
2187 if (_allowedReadLineBytes < span.Length)
2188 {
2190 }
2191 line = default(ReadOnlySpan<byte>);
2192 return false;
2193 }
2194 int num2 = num + 1;
2195 _readOffset += num2;
2198 line = span.Slice(0, (num > 0 && span[num - 1] == 13) ? (num - 1) : num);
2199 return true;
2200 }
readonly HttpConnectionPool _pool
static string net_http_response_headers_exceeded_length
Definition SR.cs:124
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
Definition SR.cs:7

References System.Net.Http.HttpConnection._allowedReadLineBytes, System.Net.Http.HttpConnectionSettings._maxResponseHeadersLength, System.Net.Http.HttpConnection._pool, System.Net.Http.HttpConnection._readBuffer, System.Net.Http.HttpConnection._readLength, System.Net.Http.HttpConnection._readOffset, System.SR.Format(), System.L, System.SR.net_http_response_headers_exceeded_length, System.Net.Http.HttpConnectionPool.Settings, and System.Net.Http.HttpConnection.ThrowIfExceededAllowedReadLineBytes().

Referenced by System.Net.Http.HttpConnection.ChunkedEncodingReadStream.ReadChunkFromConnectionBuffer().