You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
662 B

4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using System.Text;
  5. namespace Apewer.AspNetBridge
  6. {
  7. /// <summary></summary>
  8. public abstract class HttpContent : IDisposable
  9. {
  10. HttpContentHeaders _headers = new HttpContentHeaders();
  11. Stream _stream = null;
  12. /// <summary></summary>
  13. public Stream Stream
  14. {
  15. get { return _stream; }
  16. set { _stream = value; }
  17. }
  18. /// <summary></summary>
  19. public HttpContentHeaders Headers { get => _headers; }
  20. /// <summary></summary>
  21. public void Dispose() => RuntimeUtility.Dispose(Stream);
  22. }
  23. }