Adding "default" HTTP headers for all requests

Is there any elegant way to specify certain headers for all HTTP requests, i.e. using httpConfig?

httpConfig has a few builder methods for some pre-defined headers (User-Agent, Accept, etc.) but not a generic method to add user-defined ones. With my limited Scala skills, I’ve been unable to coax httpConfig into adding this capability.



Woups, that’s something that should have been possible!
Fixed, will be in 1.5.2:

Exactly what I meant. Thanks!