Revision c92e02f3 trunk/Pithos.Network/RestClient.cs

b/trunk/Pithos.Network/RestClient.cs
450 450
            var builder = new UriBuilder(String.Join("/", BaseAddress, container, objectName));
451 451
            return builder;
452 452
        }
453

  
454
        public Dictionary<string, string> GetMeta(string metaPrefix)
455
        {
456
            if (String.IsNullOrWhiteSpace(metaPrefix))
457
                throw new ArgumentNullException("metaPrefix");
458
            Contract.EndContractBlock();
459

  
460
            var keys = ResponseHeaders.AllKeys.AsQueryable();
461
            var dict = (from key in keys
462
                        where key.StartsWith(metaPrefix)
463
                        let name = key.Substring(metaPrefix.Length)
464
                        select new { Name = name, Value = ResponseHeaders[key] })
465
                        .ToDictionary(t => t.Name, t => t.Value);
466
            return dict;
467
        }
453 468
    }
454 469

  
455 470
    public class RetryException:Exception

Also available in: Unified diff