2 writes to HeadersLengthLimit
Microsoft.AspNetCore.Http (1)
Features\FormFeature.cs (1)
232HeadersLengthLimit = _options.MultipartHeadersLengthLimit,
Microsoft.AspNetCore.WebUtilities.Tests (1)
MultipartReaderTests.cs (1)
143HeadersLengthLimit = 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 }; 95await _stream.DrainAsync(HeadersLengthLimit, cancellationToken); 109var line = await _stream.ReadLineAsync(HeadersLengthLimit, cancellationToken); 112if (HeadersLengthLimit - totalSize < line.Length) 114throw new InvalidDataException($"Multipart headers length limit {HeadersLengthLimit} exceeded."); 131line = await _stream.ReadLineAsync(HeadersLengthLimit - totalSize, cancellationToken);