You always have to type HttpStatusCode. before IDE can help you.
Also the to with a lambda sounds odd to me, as the standard library use it to create a Pair. It really sounds like the to will create a Pair and does not register something.
You type smaller case code without pressing shift, you press enter, then IDE will prompt for completion for HttpStatusCode. This could give both better typing experience and looking.
When you add a reponse code definition like this:
You always have to type
HttpStatusCode.
before IDE can help you.Also the
to
with a lambda sounds odd to me, as the standard library use it to create aPair
. It really sounds like theto
will create a Pair and does not register something.What I would suggest is:
You type smaller case
code
without pressing shift, you press enter, then IDE will prompt for completion for HttpStatusCode. This could give both better typing experience and looking.