SharpGs.Internal.SharpGsClient.SyndicateCanonicalResource C# (CSharp) Method

SyndicateCanonicalResource() private static method

private static SyndicateCanonicalResource ( RequestMethod requestMethod, string bucket, string path ) : string
requestMethod RequestMethod
bucket string
path string
return string
        private static string SyndicateCanonicalResource(RequestMethod requestMethod, string bucket, string path)
        {
            var sb = new StringBuilder("/");
            if (bucket != null)
            {
                sb.Append(bucket);
                sb.Append("/");
                if (path != null)
                    sb.Append(path);
                if (requestMethod == RequestMethod.ACL_GET || requestMethod == RequestMethod.ACL_SET)
                    sb.Append("?acl");
            }
            return sb.ToString();
        }