Support for header families
See original GitHub issueVery 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:
- Created 5 years ago
- Comments:9 (6 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Btw. 0.1.0 is released and includes the matching (family) headers.
👍