Exemplo n.º 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);
        }
Exemplo n.º 2
0
        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);
        }