33 references to TextPlain
Microsoft.AspNetCore.ResponseCompression.Tests (33)
ResponseCompressionMiddlewareTest.cs (33)
46var (response, logMessages) = await InvokeMiddleware(100, requestAcceptEncodings: null, responseType: TextPlain); 55var (response, logMessages) = await InvokeMiddleware(100, requestAcceptEncodings: new[] { "gzip", "deflate" }, responseType: TextPlain); 64var (response, logMessages) = await InvokeMiddleware(100, requestAcceptEncodings: new[] { "br" }, responseType: TextPlain); 73var (response, logMessages) = await InvokeMiddleware(100, requestAcceptEncodings: new[] { "zstd" }, responseType: TextPlain); 88var (response, logMessages) = await InvokeMiddleware(100, encodings, responseType: TextPlain); 99var (response, logMessages) = await InvokeMiddleware(100, new[] { encoding1, encoding2 }, responseType: TextPlain); 116var (response, logMessages) = await InvokeMiddleware(100, new[] { encoding1, encoding2 }, responseType: TextPlain, configure: Configure); 125var (response, logMessages) = await InvokeMiddleware(100, requestAcceptEncodings: new[] { "unknown" }, responseType: TextPlain); 137var (response, logMessages) = await InvokeMiddleware(100, requestAcceptEncodings: null, responseType: TextPlain, httpMethod: HttpMethods.Head); 146var (response, logMessages) = await InvokeMiddleware(100, requestAcceptEncodings: new[] { "gzip", "deflate" }, responseType: TextPlain, httpMethod: HttpMethods.Head); 185context.Response.ContentType = TextPlain; 309var (response, logMessages) = await InvokeMiddleware(uncompressedBodyLength: 100, requestAcceptEncodings: new[] { "gzip" }, TextPlain, 365var (response, logMessages) = await InvokeMiddleware(100, requestAcceptEncodings: new[] { "*" }, responseType: TextPlain); 374var (response, logMessages) = await InvokeMiddleware(100, requestAcceptEncodings: new[] { "identity" }, responseType: TextPlain); 389var (response, logMessages) = await InvokeMiddleware(100, requestAcceptEncodings: new[] { encoding1, encoding2 }, responseType: TextPlain); 399var (response, logMessages) = await InvokeMiddleware(100, requestAcceptEncodings: new[] { encoding1, encoding2 }, responseType: TextPlain); 422var (response, logMessages) = await InvokeMiddleware(50, requestAcceptEncodings: new[] { "gzip" }, responseType: TextPlain, addResponseAction: (r) => 438var (response, logMessages) = await InvokeMiddleware(50, requestAcceptEncodings: new[] { "gzip" }, responseType: TextPlain, addResponseAction: (r) => 472options.MimeTypes = new[] { TextPlain }; 480context.Response.ContentType = TextPlain; 540options.MimeTypes = new[] { TextPlain }; 550context.Response.ContentType = TextPlain; 610options.MimeTypes = new[] { TextPlain }; 620context.Response.ContentType = TextPlain; 679context.Response.ContentType = TextPlain; 725context.Response.ContentType = TextPlain; 776context.Response.ContentType = TextPlain; 829context.Response.ContentType = TextPlain; 889context.Response.ContentType = TextPlain; 959context.Response.ContentType = TextPlain; 1138context.Response.ContentType = TextPlain; 1188context.Response.ContentType = TextPlain; 1238context.Response.ContentType = TextPlain;