-
Notifications
You must be signed in to change notification settings - Fork 9.9k
/
HeaderPropagationOptions.cs
22 lines (21 loc) · 1.07 KB
/
HeaderPropagationOptions.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNetCore.HeaderPropagation
{
/// <summary>
/// Provides configuration for the <see cref="HeaderPropagationMiddleware"/>.
/// </summary>
public class HeaderPropagationOptions
{
/// <summary>
/// Gets or sets the headers to be captured by the <see cref="HeaderPropagationMiddleware"/>
/// and to be propagated by the <see cref="HeaderPropagationMessageHandler"/>.
/// </summary>
/// <remarks>
/// Entries in <see cref="Headers"/> are processed in order while capturing headers inside
/// <see cref="HeaderPropagationMiddleware"/>. This can cause an earlier entry to take precedence
/// over a later entry if they have the same <see cref="HeaderPropagationEntry.CapturedHeaderName"/>.
/// </remarks>
public HeaderPropagationEntryCollection Headers { get; set; } = new HeaderPropagationEntryCollection();
}
}