that's the problem with an api like `ctx.write(Any...
# getting-started
d
that's the problem with an api like
ctx.write(Any)
e.g.
ctx.write(response)
in this case. type system can't help
a
What was the problem?
d
@Andreas Sinz in Netty, a
DefaultHttpResponse
is really just statusLine + headers, no body. but
DefaultFullHttpResponse
is that + body.
so accidentally using the wrong one is hard to spot at a glance yet it has consequences that aren't obvious to track down
maybe better naming would be
PartialHttpResonse
vs
FullHttpResponse
, for example