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.

Support for header families

See original GitHub issue

Very recently i came across a certain limitation of typed-api, as title suggests it is about header families, for example all headers starting with l5d-ctx (linkerd context). Program may not be interested to use all of the headers of that family but it might be required to forward those when doing request to some other service. Unfortunately it is impossible to do this given the current API, but i think it should be pretty simple to add something like the following:

  val MyApi = "header" :> "family" :> Header[String].family("my-hdr-family") :> Get[Json, A]

Given the following definition one can interpret it as to extract all headers starting with my-hdr-family on the server-side, and to provide zero or more headers on the client side.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
pheymanncommented, Aug 6, 2018

Btw. 0.1.0 is released and includes the matching (family) headers.

0reactions
pheymanncommented, Aug 14, 2018

👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Family Headers - Etsy
Check out our family headers selection for the very best in unique or custom, handmade pieces from our shops.
Read more >
How to Frame a Window, Build Window Headers and Door ...
We'll explain how headers work and give you some tips on how to design the opening so it supports the weight of your...
Read more >
Primary header family - Revit Products - Autodesk Forums
Looking for a "primary header" for a central heating system. Is there a Revit family available? ... Autodesk Premium Support Team
Read more >
Brine template family - Squarespace Help Center
With templates in the Brine family, you can create a professional web presence for any brand or company. Customize the headers, footer,...
Read more >
family-support-header-1920x1080 - Providence Farm
Providence Farm is an extended care community-based and community-supported sober home for 18-30 year old men who have completed treatment for substance use ......
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