WebResponse.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. //Copyright 2010 Microsoft Corporation
  2. //
  3. //Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
  4. //You may obtain a copy of the License at
  5. //
  6. //http://www.apache.org/licenses/LICENSE-2.0
  7. //
  8. //Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an
  9. //"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. //See the License for the specific language governing permissions and limitations under the License.
  11. namespace System.Data.Services.Http
  12. {
  13. #region Namespaces.
  14. using System;
  15. using System.IO;
  16. #endregion Namespaces.
  17. internal abstract class WebResponse : IDisposable
  18. {
  19. public abstract long ContentLength
  20. {
  21. get;
  22. }
  23. public abstract string ContentType
  24. {
  25. get;
  26. }
  27. public abstract void Close();
  28. public abstract Stream GetResponseStream();
  29. void IDisposable.Dispose()
  30. {
  31. this.Dispose(false);
  32. }
  33. protected abstract void Dispose(bool disposing);
  34. }
  35. }