parse request headers