9 instantiations of ContentDispositionHeaderValue
dotnet-openapi (1)
HttpClientWrapper.cs (1)
61
return new
ContentDispositionHeaderValue
(disposition.First());
Microsoft.Build.Tasks.UnitTests (1)
DownloadFile_Tests.cs (1)
98
ContentDisposition = new
ContentDispositionHeaderValue
(DispositionTypeNames.Attachment)
Microsoft.DotNet.Open.Api.Tools.Tests (3)
OpenApiTestBase.cs (3)
92
var noExtension = new
ContentDispositionHeaderValue
("attachment");
94
var extension = new
ContentDispositionHeaderValue
("attachment");
96
var justAttachments = new
ContentDispositionHeaderValue
("attachment");
System.Net.Http (4)
System\Net\Http\Headers\ContentDispositionHeaderValue.cs (2)
181
return new
ContentDispositionHeaderValue
(this);
230
ContentDispositionHeaderValue contentDispositionHeader = new
ContentDispositionHeaderValue
();
System\Net\Http\MultipartFormDataContent.cs (2)
30
content.Headers.ContentDisposition ??= new
ContentDispositionHeaderValue
(formData);
56
ContentDispositionHeaderValue header = new
ContentDispositionHeaderValue
(formData);
29 references to ContentDispositionHeaderValue
dotnet-openapi (3)
Commands\BaseCommand.cs (1)
368
var
contentDisposition = response.ContentDisposition();
HttpClientWrapper.cs (1)
57
public
ContentDispositionHeaderValue
ContentDisposition()
IHttpResponseMessageWrapper.cs (1)
15
ContentDispositionHeaderValue
ContentDisposition();
Microsoft.DotNet.Open.Api.Tools.Tests (13)
OpenApiTestBase.cs (13)
90
private static IDictionary<string, Tuple<string,
ContentDispositionHeaderValue
>> DownloadMock()
92
var
noExtension = new ContentDispositionHeaderValue("attachment");
94
var
extension = new ContentDispositionHeaderValue("attachment");
96
var
justAttachments = new ContentDispositionHeaderValue("attachment");
98
return new Dictionary<string, Tuple<string,
ContentDispositionHeaderValue
>> {
100
{ DifferentUrl, Tuple.Create<string,
ContentDispositionHeaderValue
>(DifferentUrlContent, null) },
101
{ PackageUrl, Tuple.Create<string,
ContentDispositionHeaderValue
>(PackageUrlContent, null) },
102
{ NoDispositionUrl, Tuple.Create<string,
ContentDispositionHeaderValue
>(Content, null) },
124
private readonly IDictionary<string, Tuple<string,
ContentDispositionHeaderValue
>> _results;
126
public TestHttpClientWrapper(IDictionary<string, Tuple<string,
ContentDispositionHeaderValue
>> results)
164
private readonly
ContentDispositionHeaderValue
_contentDisposition;
168
ContentDispositionHeaderValue
header)
178
public
ContentDispositionHeaderValue
ContentDisposition()
netstandard (1)
netstandard.cs (1)
1100
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Http.Headers.
ContentDispositionHeaderValue
))]
System.Net.Http (12)
System\Net\Http\Headers\ContentDispositionHeaderValue.cs (8)
132
protected ContentDispositionHeaderValue(
ContentDispositionHeaderValue
source)
161
ContentDispositionHeaderValue
? other = obj as
ContentDispositionHeaderValue
;
188
public static
ContentDispositionHeaderValue
Parse(string input)
191
return (
ContentDispositionHeaderValue
)GenericHeaderParser.ContentDispositionParser.ParseValue(input,
195
public static bool TryParse([NotNullWhen(true)] string? input, [NotNullWhen(true)] out
ContentDispositionHeaderValue
? parsedValue)
202
parsedValue = (
ContentDispositionHeaderValue
)output!;
230
ContentDispositionHeaderValue
contentDispositionHeader = new ContentDispositionHeaderValue();
System\Net\Http\Headers\GenericHeaderParser.cs (1)
30
internal static readonly GenericHeaderParser ContentDispositionParser = new GenericHeaderParser(false,
ContentDispositionHeaderValue
.GetDispositionTypeLength);
System\Net\Http\Headers\HttpContentHeaders.cs (2)
20
public
ContentDispositionHeaderValue
? ContentDisposition
22
get { return (
ContentDispositionHeaderValue
?)GetSingleParsedValue(KnownHeaders.ContentDisposition.Descriptor); }
System\Net\Http\MultipartFormDataContent.cs (1)
56
ContentDispositionHeaderValue
header = new ContentDispositionHeaderValue(formData);