finished function request and Server swift implementation