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