Beispiel #1
0
        private HttpUrl CreateUrl(CosRequest cosRequest)
        {
            HttpUrl httpUrl = new HttpUrl();

            httpUrl.Scheme(cosRequest.IsHttps ? "https" : "http");
            httpUrl.Host(cosRequest.GetHost());
            httpUrl.SetPath(cosRequest.RequestPath);
            httpUrl.SetQueryParamters(cosRequest.GetRequestParamters());
            return(httpUrl);
        }
        private HttpUrl CreateUrl(CosRequest cosRequest)
        {
            HttpUrl httpUrl = new HttpUrl();

            httpUrl.Scheme = (bool)cosRequest.IsHttps ? "https" : "http";
            httpUrl.Host   = cosRequest.GetHost();
            httpUrl.Path   = URLEncodeUtils.EncodePathOfURL(cosRequest.RequestPath);
            httpUrl.SetQueryParameters(cosRequest.GetRequestParamters());
            return(httpUrl);
        }