Skip to content

Add Link header parsing#79

Open
jtdowney wants to merge 4 commits into
gleam-lang:mainfrom
jtdowney:link-header
Open

Add Link header parsing#79
jtdowney wants to merge 4 commits into
gleam-lang:mainfrom
jtdowney:link-header

Conversation

@jtdowney

@jtdowney jtdowney commented Mar 9, 2026

Copy link
Copy Markdown
Member

Closes #78

@lpil lpil left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lovely, thank you! I've left some notes inline RE the implementation, as pop_grapheme is avoided as much as possible when parsing strings.

Comment thread src/gleam/http.gleam
Comment thread src/gleam/http.gleam
Comment thread src/gleam/http.gleam Outdated
Comment thread src/gleam/http.gleam
Comment thread src/gleam/http.gleam
parse_rfc_2045_parameter_unquoted_value consumes the ";"
delimiter, so parse_link_parameters cannot find it to
recognize the next parameter. Add parse_link_parameter_value
that uses a splitter to preserve ";" in the returned rest.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Proposal: http.parse_link_header (RFC 8288)

2 participants