Definition
Assembly: CloudNimble.Breakdance.DotHttp.dll Namespace: CloudNimble.Breakdance.DotHttp Inheritance: System.ObjectSyntax
Summary
Resolves{{variable}} placeholders in .http file content.
Remarks
Supports simple variables, dynamic variables (randomInt, etc.), and response references for request chaining per the Microsoft .http file specification.Examples
Constructors
.ctor
Syntax
.ctor Inherited
Inherited from
objectSyntax
Methods
Clear
Clears all stored variables.Syntax
Examples
Equals Inherited Virtual
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
obj | object? | - |
Returns
Type:bool
Equals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
GetHashCode Inherited Virtual
Inherited from
objectSyntax
Returns
Type:int
GetResponseReferenceNames
Extracts all response reference names from the input.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
input | string | The input string. |
Returns
Type:System.Collections.Generic.HashSet<string>
Set of request names that are referenced.
Examples
GetType Inherited
Inherited from
objectSyntax
Returns
Type:System.Type
GetVariableNames
Extracts all variable names from the input string.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
input | string | The 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
| Name | Type | Description |
|---|---|---|
input | string | The 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
| Name | Type | Description |
|---|---|---|
input | string | The input string to check. |
Returns
Type:bool
True if unresolved variables remain.
Examples
MemberwiseClone Inherited
Inherited from
objectSyntax
Returns
Type:object
ReferenceEquals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
Resolve
Resolves all variable references in the input string.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
input | string | The input string containing {{variable}} placeholders. |
Returns
Type:string
The resolved string with variables replaced.
Examples
ResolveDynamicVariables
Resolves dynamic variables like randomInt, $timestamp, etc.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
input | string | The input string. |
Returns
Type:string
The resolved string.
Examples
ResolveSimpleVariables
Resolves simple{{variable}} placeholders.
Syntax
Parameters
| Name | Type | Description |
|---|---|---|
input | string | The input string. |
Returns
Type:string
The resolved string.
Examples
SetVariable
Sets a variable value for resolution.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
name | string | The variable name (without @ prefix or wrapper). |
value | string | The variable value. |
Examples
SetVariables
Sets multiple variables at once.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
variables | System.Collections.Generic.IDictionary<string, string> | Dictionary of variable names and values. |
Examples
ToString Inherited Virtual
Inherited from
objectSyntax
Returns
Type:string?