> ```fun Request.formAsMap(): Map<String, Li...
# http4k
m
Copy code
fun Request.formAsMap(): Map<String, List<String?>>
Why does this not return
Map<String, List<String>>
? Why is the string nullable? 🤔
d
Because, like form Params, you don't even need an.empty string to pass. /foo?bar is valid
Nullability is where a lot of http libraries fall down compared to the actual spec
and don't get me started on WSGI in python libs ...
🙃
m
Ah, so
/foo?bar
will give "bar" = null, and
/foo?bar=
will give "bar" = ""?
👍 2