HttpWebRequest.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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.Globalization;
  16. using System.IO;
  17. using System.Text;
  18. using System.Threading;
  19. using System.Diagnostics;
  20. #endregion Namespaces.
  21. internal abstract class HttpWebRequest : System.Data.Services.Http.WebRequest, IDisposable
  22. {
  23. public abstract string Accept
  24. {
  25. get;
  26. set;
  27. }
  28. public abstract long ContentLength
  29. {
  30. set;
  31. }
  32. public abstract bool AllowReadStreamBuffering
  33. {
  34. get;
  35. set;
  36. }
  37. void IDisposable.Dispose()
  38. {
  39. this.Dispose(true);
  40. }
  41. public abstract System.Net.WebHeaderCollection CreateEmptyWebHeaderCollection();
  42. protected abstract void Dispose(bool disposing);
  43. }
  44. }