Definition
Assembly: CloudNimble.Breakdance.DotHttp.dll Namespace: CloudNimble.Breakdance.DotHttp Inheritance: System.ObjectSyntax
Summary
Parses .http files into structured DotHttpFile objects.Remarks
Implements the full .http file specification as documented at https://learn.microsoft.com/en-us/aspnet/core/test/http-files including variables, request chaining, file references, and multi-line headers.Examples
Constructors
.ctor
Syntax
.ctor Inherited
Inherited from
objectSyntax
Methods
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
GetType Inherited
Inherited from
objectSyntax
Returns
Type:System.Type
MemberwiseClone Inherited
Inherited from
objectSyntax
Returns
Type:object
Parse
Parses a .http file content into a structured model.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
content | string | The content of the .http file. |
filePath | string | The file path for reference in the model. |
Returns
Type:CloudNimble.Breakdance.DotHttp.Models.DotHttpFile
A DotHttpFile containing the parsed requests, variables, and any parse errors.
Exceptions
| Exception | Description |
|---|---|
ArgumentNullException | Thrown when filePath is null. |
Examples
ReferenceEquals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
ToString Inherited Virtual
Inherited from
objectSyntax
Returns
Type:string?