示例#1
0
        /// <summary>
        /// Gets the full url composed of the <see cref="BaseUrl"/> and <see cref="BasePath"/> with no trailing `/`
        /// </summary>
        public virtual string GetUrl()
        {
            var url = new ValueStringBuilder(stackalloc char[ValueStringBuilder.StackallocThreshold]);

            url.Append(BaseUrl.AsSpan().TrimEnd('/'));
            url.Append('/');
            url.Append(BasePath.AsSpan().Trim('/'));
            return(url.ToString());
        }