get the base url for a cowboy request