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