Does http4k have any collection of constants for s...
# http4k
m
Does http4k have any collection of constants for standard HTTP header names?
f
If you use lenses to extract header data, then there are a few common ones defined here: https://github.com/http4k/http4k/blob/master/http4k-core/src/main/kotlin/org/http4k/lens/header.kt
m
Yeah, with emphasis on a few 😉
d
Extras are available to be added for £1k each, or for free with an open source contribution 🙃
m
d
It certainly is! 🙃
Bear in mind that there may be better options than string for the type (eg Date header) 🙃
m
Yes, I just realized that just constants, or trivial lenses, might not provide so much value.