question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RFC: A better data structure for `Headers`

See original GitHub issue

Spinning out of discussion in https://github.com/http4s/http4s/pull/6201. cc @wjoel @sideeffffect @CremboC

Off the top of my head there are a few issues at play I believe:

  1. A better data structure than List for appending new headers.
  2. A better data structure than List for looking up headers.
  3. A data structure that doesn’t preserve order, since it’s not required by spec and other frameworks don’t.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
bplommercommented, Sep 30, 2022

So Map[CIString, NonEmptyChain[String]]?

2reactions
armanbilgecommented, Oct 2, 2022

@sideeffffect:

so my read is that Chain offers significant wins over List and Vector for concatenation heavy workloads (the accumulate benchmark) and that it is nearly as fast or faster than List for other cases.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Structured Field Values for HTTP RFC 8941 - IETF Datatracker
This document introduces a set of common data structures for use in definitions of new HTTP field values to address these problems.
Read more >
RFC 7240: Prefer Header for HTTP
As an alternative, this specification defines a new HTTP request header field ... Note that while Preference tokens are similar in structure to...
Read more >
RFC Headers and Boilerplate - Internet Architecture Board
This page holds the current IAB approved instructions for constructing header and boilerplate text for RFCs, as specified by RFC 7841.
Read more >
rfcs/0019-data-structures.md at master - GitHub
This documents explains all the basic data structures used in CKB. ... For more information on the CKB VM please refer to CKB...
Read more >
display data form RFC table as header of fields inVC table
In short the table should get header values dynamically and it should be extracted form a table which i get from RFC. Is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found