4 instantiations of ContentDispositionHeaderValue
dotnet-openapi (1)
HttpClientWrapper.cs (1)
61
return new
ContentDispositionHeaderValue
(disposition.First());
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");
21 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 (4)
artifacts\obj\System.Net.Http\Debug\net10.0\System.Net.Http.notsupported.cs (4)
533
protected ContentDispositionHeaderValue(System.Net.Http.Headers.
ContentDispositionHeaderValue
source) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_NetHttp); }
546
public static System.Net.Http.Headers.
ContentDispositionHeaderValue
Parse(string input) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_NetHttp); }
549
public static bool TryParse([System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] string? input, [System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] out System.Net.Http.Headers.
ContentDispositionHeaderValue
? parsedValue) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_NetHttp); }
607
public System.Net.Http.Headers.
ContentDispositionHeaderValue
? ContentDisposition { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_NetHttp); } set { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_NetHttp); } }