Skip to content

Parsing error reasons #57

Answered by mdecimus
JasterV asked this question in Q&A
Aug 4, 2023 · 1 comments · 8 replies
Discussion options

You must be logged in to vote

Hi,

None is returned when not a single valid header is found in the message. In all other cases, if at least one header is found (including non-RFC headers), then Some() will be returned.

For example:

Hello: World

Will return a parsed message with a single header Hello with value World.. However, when parsing:

Hello World

A None will be returned as there is not a single header in the input.

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@mdecimus
Comment options

@JasterV
Comment options

@JasterV
Comment options

@mdecimus
Comment options

@JasterV
Comment options

Answer selected by JasterV
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants