As proposed in #28 I added a new header type for the server-side which extracts headers based on some common key string pattern:
val Api = := :> Server.Match[String]("Control-") :> Get[Json, User]
val endpoint = derive[IO](Api).from { headers => ??? ) // headers is of type Set[String]
All header keys which contain the pattern are extracted.
As proposed in #28 I added a new header type for the server-side which extracts headers based on some common key string pattern:
All header keys which contain the pattern are extracted.