Skip to main content

Definition

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

Syntax

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 object

Syntax

Methods

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

GetType Inherited

Inherited from object

Syntax

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

Returns

Type: object

Parse

Parses a .http file content into a structured model.

Syntax

Parameters

NameTypeDescription
contentstringThe content of the .http file.
filePathstringThe 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

ExceptionDescription
ArgumentNullExceptionThrown when filePath is null.

Examples

ReferenceEquals Inherited

Inherited from object

Syntax

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

Returns

Type: string?