23 references to ProtobufContentType
Aspire.Dashboard (4)
Otlp\Http\OtlpHttpEndpointsBuilder.cs (4)
91
if (string.Equals(mt.MediaType,
ProtobufContentType
, StringComparison.OrdinalIgnoreCase))
104
logger.LogDebug("OTLP HTTP request with unsupported content type '{ContentType}' was rejected. Only '{SupportedContentType}' is supported.", httpContext.Request.ContentType,
ProtobufContentType
);
111
Message: $"Content type '{httpContext.Request.ContentType}' is not supported. Only '{
ProtobufContentType
}' is supported.");
225
httpContext.Response.ContentType =
ProtobufContentType
;
Aspire.Dashboard.Tests (19)
Integration\OtlpHttpServiceTests.cs (16)
51
content.Headers.TryAddWithoutValidation("content-type", OtlpHttpEndpointsBuilder.
ProtobufContentType
);
60
Assert.Equal(OtlpHttpEndpointsBuilder.
ProtobufContentType
, responseMessage.Content.Headers.GetValues("content-type").Single());
77
content.Headers.TryAddWithoutValidation("content-type", OtlpHttpEndpointsBuilder.
ProtobufContentType
);
127
content.Headers.TryAddWithoutValidation("content-type", OtlpHttpEndpointsBuilder.
ProtobufContentType
);
200
requestMessage.Content.Headers.TryAddWithoutValidation("content-type", OtlpHttpEndpointsBuilder.
ProtobufContentType
);
225
content.Headers.TryAddWithoutValidation("content-type", OtlpHttpEndpointsBuilder.
ProtobufContentType
);
253
content.Headers.TryAddWithoutValidation("content-type", OtlpHttpEndpointsBuilder.
ProtobufContentType
);
266
Assert.Equal(OtlpHttpEndpointsBuilder.
ProtobufContentType
, responseMessage.Content.Headers.GetValues("content-type").Single());
291
content.Headers.TryAddWithoutValidation("content-type", OtlpHttpEndpointsBuilder.
ProtobufContentType
);
396
content.Headers.TryAddWithoutValidation("content-type", OtlpHttpEndpointsBuilder.
ProtobufContentType
);
422
content.Headers.TryAddWithoutValidation("content-type", OtlpHttpEndpointsBuilder.
ProtobufContentType
);
431
Assert.Equal(OtlpHttpEndpointsBuilder.
ProtobufContentType
, responseMessage.Content.Headers.GetValues("content-type").Single());
451
content.Headers.TryAddWithoutValidation("content-type", OtlpHttpEndpointsBuilder.
ProtobufContentType
);
460
Assert.Equal(OtlpHttpEndpointsBuilder.
ProtobufContentType
, responseMessage.Content.Headers.GetValues("content-type").Single());
480
content.Headers.TryAddWithoutValidation("content-type", OtlpHttpEndpointsBuilder.
ProtobufContentType
);
489
Assert.Equal(OtlpHttpEndpointsBuilder.
ProtobufContentType
, responseMessage.Content.Headers.GetValues("content-type").Single());
Integration\Playwright\NativeAotDashboardTests.cs (1)
155
content.Headers.TryAddWithoutValidation("content-type", OtlpHttpEndpointsBuilder.
ProtobufContentType
);
Integration\StartupTests.cs (2)
542
content.Headers.TryAddWithoutValidation("content-type", OtlpHttpEndpointsBuilder.
ProtobufContentType
);
549
Assert.Equal(OtlpHttpEndpointsBuilder.
ProtobufContentType
, responseMessage.Content.Headers.GetValues("content-type").Single());