Skip to main content

Definition

Assembly: CloudNimble.Breakdance.DotHttp.dll Namespace: CloudNimble.Breakdance.DotHttp Inheritance: System.Object

Syntax

Summary

Resolves {{variable}} placeholders in .http file content.

Remarks

Supports simple variables, dynamic variables (datetime,datetime, randomInt, etc.), and response references for request chaining per the Microsoft .http file specification.

Examples

Constructors

.ctor

Syntax

.ctor Inherited

Inherited from object

Syntax

Methods

Clear

Clears all stored variables.

Syntax

Examples

Equals Inherited Virtual

Inherited from object

Syntax

Parameters

NameTypeDescription
objobject?-

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

Returns

Type: int

GetResponseReferenceNames

Extracts all response reference names from the input.

Syntax

Parameters

NameTypeDescription
inputstringThe input string.

Returns

Type: System.Collections.Generic.HashSet<string> Set of request names that are referenced.

Examples

GetType Inherited

Inherited from object

Syntax

Returns

Type: System.Type

GetVariableNames

Extracts all variable names from the input string.

Syntax

Parameters

NameTypeDescription
inputstringThe input string.

Returns

Type: System.Collections.Generic.HashSet<string> Set of variable names found.

Examples

HasResponseReferences

Checks if a string contains response references ({{name.response.*}}).

Syntax

Parameters

NameTypeDescription
inputstringThe input string to check.

Returns

Type: bool True if response references are present.

Examples

HasUnresolvedVariables

Checks if a string contains any unresolved variable references.

Syntax

Parameters

NameTypeDescription
inputstringThe input string to check.

Returns

Type: bool True if unresolved variables remain.

Examples

MemberwiseClone Inherited

Inherited from object

Syntax

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

Resolve

Resolves all variable references in the input string.

Syntax

Parameters

NameTypeDescription
inputstringThe input string containing {{variable}} placeholders.

Returns

Type: string The resolved string with variables replaced.

Examples

ResolveDynamicVariables

Resolves dynamic variables like datetime,datetime, randomInt, $timestamp, etc.

Syntax

Parameters

NameTypeDescription
inputstringThe input string.

Returns

Type: string The resolved string.

Examples

ResolveSimpleVariables

Resolves simple {{variable}} placeholders.

Syntax

Parameters

NameTypeDescription
inputstringThe input string.

Returns

Type: string The resolved string.

Examples

SetVariable

Sets a variable value for resolution.

Syntax

Parameters

NameTypeDescription
namestringThe variable name (without @ prefix or wrapper).
valuestringThe variable value.

Examples

SetVariables

Sets multiple variables at once.

Syntax

Parameters

NameTypeDescription
variablesSystem.Collections.Generic.IDictionary<string, string>Dictionary of variable names and values.

Examples

ToString Inherited Virtual

Inherited from object

Syntax

Returns

Type: string?