1 implementation of ContentTypes
Microsoft.AspNetCore.Http.Abstractions (1)
Metadata\ProducesResponseTypeMetadata.cs (1)
79
public IEnumerable<string>
ContentTypes
{ get; private set; }
12 references to ContentTypes
Microsoft.AspNetCore.Http.Extensions.Tests (9)
RequestDelegateFactoryTests.cs (2)
2566
Assert.Equal("application/json", Assert.Single(responseMetadata.
ContentTypes
));
2578
Assert.Equal("text/plain", Assert.Single(responseMetadata.
ContentTypes
));
RequestDelegateGenerator\RequestDelegateCreationTests.Metadata.cs (7)
35
Assert.Equal("text/plain", metadata.
ContentTypes
.Single());
51
Assert.Equal("application/json", metadata.
ContentTypes
.Single());
81
Assert.Equal("text/plain", metadata.
ContentTypes
.Single());
106
Assert.Equal("text/plain", metadata.
ContentTypes
.Single());
132
Assert.Equal("application/problem+json", metadata.
ContentTypes
.Single());
175
Assert.Equal("application/json", Assert.Single(responseMetadata.
ContentTypes
));
189
Assert.Equal("text/plain", Assert.Single(responseMetadata.
ContentTypes
));
Microsoft.AspNetCore.Mvc.ApiExplorer (2)
ApiResponseTypeProvider.cs (2)
261
if (metadata.
ContentTypes
!= null)
263
foreach (var contentType in metadata.
ContentTypes
)
Microsoft.AspNetCore.OpenApi (1)
Services\OpenApiGenerator.cs (1)
134
foreach (var contentType in responseMetadata.
ContentTypes
)