[server] Add 'const' for input parameters according to the coding convention.