2 writes to HeadersLengthLimit
Microsoft.AspNetCore.Http (1)
Features\FormFeature.cs (1)
232
HeadersLengthLimit
= _options.MultipartHeadersLengthLimit,
Microsoft.AspNetCore.WebUtilities.Tests (1)
MultipartReaderTests.cs (1)
143
HeadersLengthLimit
= 60,
7 references to HeadersLengthLimit
Microsoft.AspNetCore.WebUtilities (7)
MultipartReader.cs (7)
22
/// Gets the default value for <see cref="
HeadersLengthLimit
"/>.
62
_currentStream = new MultipartReaderStream(_stream, _boundary) { LengthLimit =
HeadersLengthLimit
};
95
await _stream.DrainAsync(
HeadersLengthLimit
, cancellationToken);
109
var line = await _stream.ReadLineAsync(
HeadersLengthLimit
, cancellationToken);
112
if (
HeadersLengthLimit
- totalSize < line.Length)
114
throw new InvalidDataException($"Multipart headers length limit {
HeadersLengthLimit
} exceeded.");
131
line = await _stream.ReadLineAsync(
HeadersLengthLimit
- totalSize, cancellationToken);