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