/
githubmirror
/
aspnetcore
Обзор
Документация
Войти
/
githubmirror
/
aspnetcore
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Middleware/RequestDecompression/src/IRequestDecompressionProvider.cs
19 строк
781 B
David Acker
Add Request Decompression middleware (#40279)
04 июн 2022, 01:22
Не верифицирован
04 июн 2022, 01:22
d5a539f
Код
Авторство
О чём код?
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.AspNetCore.Http; namespace Microsoft.AspNetCore.RequestDecompression; /// <summary> /// Used to examine requests to see if decompression should be used. /// </summary> public interface IRequestDecompressionProvider { /// <summary> /// Examines the request and selects an acceptable decompression provider, if any. /// </summary> /// <param name="context">The <see cref="HttpContext"/>.</param> /// <returns>The decompression stream when the provider is capable of decompressing the HTTP request body, otherwise <see langword="null" />.</returns> Stream? GetDecompressionStream(HttpContext context); }