Click or drag to resize
MimeKit

MimeParserParseHeadersAsync Method

Asynchronously parse a list of headers from the stream.

Namespace: MimeKit
Assembly: MimeKit (in MimeKit.dll) Version: 4.3.0
Syntax
C#
public Task<HeaderList> ParseHeadersAsync(
	CancellationToken cancellationToken = default
)

Parameters

cancellationToken  CancellationToken  (Optional)
The cancellation token.

Return Value

TaskHeaderList
The parsed list of headers.

Implements

IMimeParserParseHeadersAsync(CancellationToken)
Exceptions
ExceptionCondition
OperationCanceledException The operation was canceled via the cancellation token.
FormatException There was an error parsing the headers.
IOException An I/O error occurred.
Remarks
Asynchronously parses a list of headers from the stream.
See Also