Table of Contents

Class UpdateResponseHeaderAction

Namespace
Fluxzy.Rules.Actions
Assembly
Fluxzy.Core.dll

Update and existing response header. If the header does not exists in the original response, 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 response header. If the header does not exists in the original response, 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 UpdateResponseHeaderAction : Action
Inheritance
UpdateResponseHeaderAction
Inherited Members

Constructors

UpdateResponseHeaderAction(string, string)

public UpdateResponseHeaderAction(string headerName, string headerValue)

Parameters

headerName string
headerValue string

Properties

ActionScope

public override FilterScope ActionScope { get; }

Property Value

FilterScope

AddIfMissing

Add the header if it does not exists in the original response

public bool AddIfMissing { get; set; }

Property Value

bool

DefaultDescription

public override string DefaultDescription { get; }

Property Value

string

HeaderName

Header name

public string HeaderName { get; set; }

Property Value

string

HeaderValue

Header value

public string HeaderValue { get; set; }

Property Value

string

Methods

GetExamples()

public override IEnumerable<ActionExample> GetExamples()

Returns

IEnumerable<ActionExample>

InternalAlter(ExchangeContext, Exchange?, Connection?, FilterScope, BreakPointManager)

public override ValueTask InternalAlter(ExchangeContext context, Exchange? exchange, Connection? connection, FilterScope scope, BreakPointManager breakPointManager)

Parameters

context ExchangeContext
exchange Exchange
connection Connection
scope FilterScope
breakPointManager BreakPointManager

Returns

ValueTask