19 references to ContentTypeConstants
Microsoft.AspNetCore.Http.Results (19)
AcceptedAtRouteOfT.cs (1)
125builder.Metadata.Add(ProducesResponseTypeMetadata.CreateUnvalidated(typeof(TValue), StatusCodes.Status202Accepted, ContentTypeConstants.ApplicationJsonContentTypes));
AcceptedOfT.cs (1)
103builder.Metadata.Add(ProducesResponseTypeMetadata.CreateUnvalidated(typeof(TValue), StatusCodes.Status202Accepted, ContentTypeConstants.ApplicationJsonContentTypes));
BadRequestOfT.cs (1)
68builder.Metadata.Add(ProducesResponseTypeMetadata.CreateUnvalidated(typeof(TValue), StatusCodes.Status400BadRequest, ContentTypeConstants.ApplicationJsonContentTypes));
ConflictOfT.cs (1)
68builder.Metadata.Add(ProducesResponseTypeMetadata.CreateUnvalidated(typeof(TValue), StatusCodes.Status409Conflict, ContentTypeConstants.ApplicationJsonContentTypes));
CreatedAtRouteOfT.cs (1)
128builder.Metadata.Add(ProducesResponseTypeMetadata.CreateUnvalidated(typeof(TValue), StatusCodes.Status201Created, ContentTypeConstants.ApplicationJsonContentTypes));
CreatedOfT.cs (1)
102builder.Metadata.Add(ProducesResponseTypeMetadata.CreateUnvalidated(typeof(TValue), StatusCodes.Status201Created, ContentTypeConstants.ApplicationJsonContentTypes));
FileContentHttpResult.cs (1)
64ContentType = contentType ?? ContentTypeConstants.BinaryContentType;
FileStreamHttpResult.cs (1)
70ContentType = contentType ?? ContentTypeConstants.BinaryContentType;
HttpResultsHelper.cs (1)
73(ContentTypeConstants.DefaultContentType, DefaultEncoding),
InternalServerErrorOfT.cs (1)
68builder.Metadata.Add(ProducesResponseTypeMetadata.CreateUnvalidated(typeof(TValue), StatusCodes.Status500InternalServerError, ContentTypeConstants.ApplicationJsonContentTypes));
NotFoundOfT.cs (1)
67builder.Metadata.Add(ProducesResponseTypeMetadata.CreateUnvalidated(typeof(TValue), StatusCodes.Status404NotFound, ContentTypeConstants.ApplicationJsonContentTypes));
OkOfT.cs (1)
67builder.Metadata.Add(ProducesResponseTypeMetadata.CreateUnvalidated(typeof(TValue), StatusCodes.Status200OK, ContentTypeConstants.ApplicationJsonContentTypes));
PhysicalFileHttpResult.cs (1)
61ContentType = contentType ?? ContentTypeConstants.BinaryContentType;
ProblemHttpResult.cs (1)
39public string ContentType => ContentTypeConstants.ProblemDetailsContentType;
UnprocessableEntityOfT.cs (1)
68builder.Metadata.Add(ProducesResponseTypeMetadata.CreateUnvalidated(typeof(TValue), StatusCodes.Status422UnprocessableEntity, ContentTypeConstants.ApplicationJsonContentTypes));
Utf8ContentHttpResult.cs (1)
65httpContext.Response.ContentType = ContentType ?? ContentTypeConstants.DefaultContentType;
ValidationProblem.cs (2)
42public string ContentType => ContentTypeConstants.ProblemDetailsContentType; 79builder.Metadata.Add(ProducesResponseTypeMetadata.CreateUnvalidated(typeof(HttpValidationProblemDetails), StatusCodes.Status400BadRequest, ContentTypeConstants.ProblemDetailsContentTypes));
VirtualFileHttpResult.cs (1)
66ContentType = contentType ?? ContentTypeConstants.BinaryContentType;