1 implementation of ContentTypes
Microsoft.AspNetCore.Http.Abstractions (1)
Metadata\ProducesResponseTypeMetadata.cs (1)
79
public IEnumerable<string>
ContentTypes
{ get; private set; }
14 references to ContentTypes
Microsoft.AspNetCore.Http.Extensions.Tests (11)
RequestDelegateFactoryTests.cs (2)
2538
Assert.Equal("application/json", Assert.Single(responseMetadata.
ContentTypes
));
2550
Assert.Equal("text/plain", Assert.Single(responseMetadata.
ContentTypes
));
RequestDelegateGenerator\RequestDelegateCreationTests.Metadata.cs (9)
35
Assert.Equal("text/plain", metadata.
ContentTypes
.Single());
51
Assert.Equal("application/json", metadata.
ContentTypes
.Single());
81
Assert.Equal("text/plain", metadata.
ContentTypes
.Single());
95
Assert.Equal("text/plain", metadata.
ContentTypes
.Single());
109
Assert.Equal("text/plain", metadata.
ContentTypes
.Single());
123
Assert.Equal("text/plain", metadata.
ContentTypes
.Single());
138
Assert.Equal("application/problem+json", metadata.
ContentTypes
.Single());
181
Assert.Equal("application/json", Assert.Single(responseMetadata.
ContentTypes
));
195
Assert.Equal("text/plain", Assert.Single(responseMetadata.
ContentTypes
));
Microsoft.AspNetCore.Mvc.ApiExplorer (2)
ApiResponseTypeProvider.cs (2)
260
if (metadata.
ContentTypes
!= null)
262
foreach (var contentType in metadata.
ContentTypes
)
Microsoft.AspNetCore.OpenApi (1)
Services\OpenApiGenerator.cs (1)
135
foreach (var contentType in responseMetadata.
ContentTypes
)