33 references to TextPlain
Microsoft.AspNetCore.ResponseCompression.Tests (33)
ResponseCompressionMiddlewareTest.cs (33)
46var (response, logMessages) = await InvokeMiddleware(100, requestAcceptEncodings: null, responseType: TextPlain);
57var (response, logMessages) = await InvokeMiddleware(100, requestAcceptEncodings: new[] { "gzip", "deflate" }, responseType: TextPlain);
66var (response, logMessages) = await InvokeMiddleware(100, requestAcceptEncodings: new[] { "br" }, responseType: TextPlain);
75var (response, logMessages) = await InvokeMiddleware(100, requestAcceptEncodings: new[] { "zstd" }, responseType: TextPlain);
90var (response, logMessages) = await InvokeMiddleware(100, encodings, responseType: TextPlain);
101var (response, logMessages) = await InvokeMiddleware(100, new[] { encoding1, encoding2 }, responseType: TextPlain);
118var (response, logMessages) = await InvokeMiddleware(100, new[] { encoding1, encoding2 }, responseType: TextPlain, configure: Configure);
127var (response, logMessages) = await InvokeMiddleware(100, requestAcceptEncodings: new[] { "unknown" }, responseType: TextPlain);
139var (response, logMessages) = await InvokeMiddleware(100, requestAcceptEncodings: null, responseType: TextPlain, httpMethod: HttpMethods.Head);
150var (response, logMessages) = await InvokeMiddleware(100, requestAcceptEncodings: new[] { "gzip", "deflate" }, responseType: TextPlain, httpMethod: HttpMethods.Head);
189context.Response.ContentType = TextPlain;
313var (response, logMessages) = await InvokeMiddleware(uncompressedBodyLength: 100, requestAcceptEncodings: new[] { "gzip" }, TextPlain,
369var (response, logMessages) = await InvokeMiddleware(100, requestAcceptEncodings: new[] { "*" }, responseType: TextPlain);
378var (response, logMessages) = await InvokeMiddleware(100, requestAcceptEncodings: new[] { "identity" }, responseType: TextPlain);
393var (response, logMessages) = await InvokeMiddleware(100, requestAcceptEncodings: new[] { encoding1, encoding2 }, responseType: TextPlain);
403var (response, logMessages) = await InvokeMiddleware(100, requestAcceptEncodings: new[] { encoding1, encoding2 }, responseType: TextPlain);
426var (response, logMessages) = await InvokeMiddleware(50, requestAcceptEncodings: new[] { "gzip" }, responseType: TextPlain, addResponseAction: (r) =>
442var (response, logMessages) = await InvokeMiddleware(50, requestAcceptEncodings: new[] { "gzip" }, responseType: TextPlain, addResponseAction: (r) =>
476options.MimeTypes = new[] { TextPlain };
484context.Response.ContentType = TextPlain;
544options.MimeTypes = new[] { TextPlain };
554context.Response.ContentType = TextPlain;
614options.MimeTypes = new[] { TextPlain };
624context.Response.ContentType = TextPlain;
683context.Response.ContentType = TextPlain;
729context.Response.ContentType = TextPlain;
780context.Response.ContentType = TextPlain;
833context.Response.ContentType = TextPlain;
893context.Response.ContentType = TextPlain;
963context.Response.ContentType = TextPlain;
1142context.Response.ContentType = TextPlain;
1192context.Response.ContentType = TextPlain;
1242context.Response.ContentType = TextPlain;