skonves / express-http-context

Get and set request-scoped context anywhere
MIT License
299 stars 26 forks source link

feature request: get all keys or values #57

Open calebolsonoverjet opened 2 years ago

calebolsonoverjet commented 2 years ago

I want to be able to get all keys and values stored in the current http context without needing to know all the keys.

To do this, I'd like a method exposed that will return an array of all keys. Or perhaps a method that returns an array of arrays of key and value pairs.

Similar to Object.keys or Object.entries on a javascript object.