rpc: generate http service handler