ServiceMessage.cs 785 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Copyright (C) Alibaba Cloud Computing
  3. * All rights reserved.
  4. *
  5. * 版权所有 (C)阿里云计算有限公司
  6. */
  7. using System;
  8. using System.Collections.Generic;
  9. using System.IO;
  10. namespace Aliyun.OSS.Common.Communication
  11. {
  12. internal class ServiceMessage
  13. {
  14. private readonly IDictionary<String, String> _headers =
  15. new Dictionary<String, String>(StringComparer.OrdinalIgnoreCase);
  16. /// <summary>
  17. /// Gets the dictionary of HTTP headers.
  18. /// </summary>
  19. public virtual IDictionary<String, String> Headers
  20. {
  21. get { return _headers; }
  22. }
  23. /// <summary>
  24. /// Gets or sets the content stream.
  25. /// </summary>
  26. public virtual Stream Content { get; set; }
  27. }
  28. }