code: private ByteBuf writeResponse(ByteBuf buffer, Object request, ThreadContext context) {
      context.serializer().writeObject(request, OUTPUT.get().setByteBuf(buffer));
      return buffer;
    }
docs: Writes a response to the given buffer.