/
aprogrammer
/
reverse-proxy-ms-yarp
Обзор
Документация
Войти
/
aprogrammer
/
reverse-proxy-ms-yarp
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/ReverseProxy/Transforms/ResponseTrailersTransformContext.cs
36 строк
1 KB
Chris Ross
Enable direct cancellation for IHttpForwarder, transforms #1542 (#1985)
13 янв 2023, 07:00
Не верифицирован
13 янв 2023, 07:00
b5192aa
Код
Авторство
О чём код?
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System.Net.Http; using System.Threading; using Microsoft.AspNetCore.Http; namespace Yarp.ReverseProxy.Transforms; /// <summary> /// Transform state for use with <see cref="ResponseTrailersTransform"/> /// </summary> public class ResponseTrailersTransformContext { /// <summary> /// The current request context. /// </summary> public HttpContext HttpContext { get; init; } = default!; /// <summary> /// The incoming proxy response. /// </summary> public HttpResponseMessage ProxyResponse { get; init; } = default!; /// <summary> /// Gets or sets if the response trailers have been copied from the HttpResponseMessage /// to the HttpResponse. Transforms use this when searching for the current value of a header they /// should operate on. /// </summary> public bool HeadersCopied { get; set; } /// <summary> /// A <see cref="CancellationToken"/> indicating that the request is being aborted. /// </summary> public CancellationToken CancellationToken { get; set; } }