server: implement head method