Class UpdateRequestHeaderAction
Update and existing request header. If the header does not exists in the original request, the header will be added. Use {{previous}} keyword to refer to the original value of the header. Note Headers that alter the connection behaviour will be ignored.
[ActionMetadata("Update and existing request header. If the header does not exists in the original request, the header will be added. <br/>Use {{previous}} keyword to refer to the original value of the header. <br/><strong>Note</strong> Headers that alter the connection behaviour will be ignored.")]
public class UpdateRequestHeaderAction : Action
- Inheritance
-
UpdateRequestHeaderAction
- Inherited Members
Constructors
UpdateRequestHeaderAction(string, string)
public UpdateRequestHeaderAction(string headerName, string headerValue)
Parameters
Properties
ActionScope
public override FilterScope ActionScope { get; }
Property Value
AddIfMissing
If true, the header will be added if it does not exists in the original request
public bool AddIfMissing { get; set; }
Property Value
AppendSeparator
Only active when AddIfMissing=true When updating an existing header, this value will be used to separate the original value and the new value.
public string? AppendSeparator { get; set; }
Property Value
DefaultDescription
public override string DefaultDescription { get; }
Property Value
HeaderName
Header name
public string HeaderName { get; set; }
Property Value
HeaderValue
Header value
public string HeaderValue { get; set; }
Property Value
Methods
GetExamples()
public override IEnumerable<ActionExample> GetExamples()
Returns
InternalAlter(ExchangeContext, Exchange?, Connection?, FilterScope, BreakPointManager)
public override ValueTask InternalAlter(ExchangeContext context, Exchange? exchange, Connection? connection, FilterScope scope, BreakPointManager breakPointManager)
Parameters
context
ExchangeContextexchange
Exchangeconnection
Connectionscope
FilterScopebreakPointManager
BreakPointManager