parsing request headers