3 instantiations of ContentDispositionHeaderValue
Microsoft.AspNetCore.Http.Results (1)
src\aspnetcore\src\Shared\ResultsHelpers\FileResultHelper.cs (1)
352var contentDisposition = new ContentDispositionHeaderValue("attachment");
Microsoft.AspNetCore.Mvc.Core (1)
src\aspnetcore\src\Shared\ResultsHelpers\FileResultHelper.cs (1)
352var contentDisposition = new ContentDispositionHeaderValue("attachment");
Microsoft.Net.Http.Headers (1)
ContentDispositionHeaderValue.cs (1)
295var contentDispositionHeader = new ContentDispositionHeaderValue();
40 references to ContentDispositionHeaderValue
Microsoft.AspNetCore.HeaderParsing (5)
CommonHeaders.cs (1)
45public static HeaderSetup<ContentDispositionHeaderValue> ContentDisposition => new(HeaderNames.ContentDisposition, ContentDispositionHeaderValueParser.Instance, cacheable: true);
Parsers\ContentDispositionHeaderValueParser.cs (4)
10internal sealed class ContentDispositionHeaderValueParser : HeaderParser<ContentDispositionHeaderValue> 14public override bool TryParse(StringValues values, [NotNullWhen(true)] out ContentDispositionHeaderValue? result, [NotNullWhen(false)] out string? error) 16if (values.Count != 1 || !ContentDispositionHeaderValue.TryParse(values[0], out var parsedValue))
Microsoft.AspNetCore.Http (2)
Features\FormFeature.cs (2)
244if (!ContentDispositionHeaderValue.TryParse(section.ContentDisposition, out var contentDisposition))
Microsoft.AspNetCore.Http.Extensions (8)
HeaderDictionaryTypeExtensions.cs (4)
137private static ContentDispositionHeaderValue? ParseCacheContentDispositionHeaderValue(string value) => ContentDispositionHeaderValue.TryParse(value, out var result) ? result : null; 184else if (typeof(T) == typeof(ContentDispositionHeaderValue))
RequestHeaders.cs (2)
109public ContentDispositionHeaderValue? ContentDisposition 113return Headers.Get<ContentDispositionHeaderValue>(HeaderNames.ContentDisposition);
ResponseHeaders.cs (2)
49public ContentDispositionHeaderValue? ContentDisposition 53return Headers.Get<ContentDispositionHeaderValue>(HeaderNames.ContentDisposition);
Microsoft.AspNetCore.Http.Results (1)
src\aspnetcore\src\Shared\ResultsHelpers\FileResultHelper.cs (1)
352var contentDisposition = new ContentDispositionHeaderValue("attachment");
Microsoft.AspNetCore.Mvc.Core (1)
src\aspnetcore\src\Shared\ResultsHelpers\FileResultHelper.cs (1)
352var contentDisposition = new ContentDispositionHeaderValue("attachment");
Microsoft.AspNetCore.WebUtilities (8)
FileMultipartSection.cs (2)
13private readonly ContentDispositionHeaderValue _contentDispositionHeader; 30public FileMultipartSection(MultipartSection section, ContentDispositionHeaderValue? header)
FormMultipartSection.cs (2)
13private readonly ContentDispositionHeaderValue _contentDispositionHeader; 30public FormMultipartSection(MultipartSection section, ContentDispositionHeaderValue? header)
MultipartSectionConverterExtensions.cs (4)
55/// <returns>A <see cref="ContentDispositionHeaderValue"/> if the header was found, null otherwise</returns> 56public static ContentDispositionHeaderValue? GetContentDispositionHeader(this MultipartSection section) 58if (!ContentDispositionHeaderValue.TryParse(section.ContentDisposition, out var header))
Microsoft.Net.Http.Headers (15)
ContentDispositionHeaderValue.cs (12)
43private static readonly HttpHeaderParser<ContentDispositionHeaderValue> Parser 44= new GenericHeaderParser<ContentDispositionHeaderValue>(false, GetDispositionTypeLength); 56/// Initializes a new instance of <see cref="ContentDispositionHeaderValue"/>. 233var other = obj as ContentDispositionHeaderValue; 252/// Parses <paramref name="input"/> as a <see cref="ContentDispositionHeaderValue"/> value. 256public static ContentDispositionHeaderValue Parse(StringSegment input) 263/// Attempts to parse the specified <paramref name="input"/> as a <see cref="ContentDispositionHeaderValue"/>. 267/// <returns><see langword="true"/> if input is a valid <see cref="ContentDispositionHeaderValue"/>, otherwise <see langword="false"/>.</returns> 268public static bool TryParse(StringSegment input, [NotNullWhen(true)] out ContentDispositionHeaderValue? parsedValue) 274private static int GetDispositionTypeLength(StringSegment input, int startIndex, out ContentDispositionHeaderValue? parsedValue) 295var contentDispositionHeader = new ContentDispositionHeaderValue();
ContentDispositionHeaderValueIdentityExtensions.cs (3)
9/// Various extension methods for <see cref="ContentDispositionHeaderValue"/> for identifying the type of the disposition header 18public static bool IsFileDisposition(this ContentDispositionHeaderValue header) 31public static bool IsFormDisposition(this ContentDispositionHeaderValue header)