IMonoHttpClientHandler.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the MIT license.
  3. // See the LICENSE file in the project root for more information.
  4. using System.Collections.Generic;
  5. using System.Net.Security;
  6. using System.Security.Authentication;
  7. using System.Security.Cryptography.X509Certificates;
  8. using System.Threading;
  9. using System.Threading.Tasks;
  10. namespace System.Net.Http
  11. {
  12. interface IMonoHttpClientHandler : IDisposable
  13. {
  14. bool SupportsAutomaticDecompression {
  15. get;
  16. }
  17. bool UseCookies {
  18. get; set;
  19. }
  20. CookieContainer CookieContainer {
  21. get; set;
  22. }
  23. SslClientAuthenticationOptions SslOptions {
  24. get; set;
  25. }
  26. DecompressionMethods AutomaticDecompression {
  27. get; set;
  28. }
  29. bool UseProxy {
  30. get; set;
  31. }
  32. IWebProxy Proxy {
  33. get; set;
  34. }
  35. ICredentials DefaultProxyCredentials {
  36. get; set;
  37. }
  38. bool PreAuthenticate {
  39. get; set;
  40. }
  41. ICredentials Credentials {
  42. get; set;
  43. }
  44. bool AllowAutoRedirect {
  45. get; set;
  46. }
  47. int MaxAutomaticRedirections {
  48. get; set;
  49. }
  50. int MaxConnectionsPerServer {
  51. get; set;
  52. }
  53. int MaxResponseHeadersLength {
  54. get; set;
  55. }
  56. long MaxRequestContentBufferSize {
  57. get; set;
  58. }
  59. IDictionary<string, object> Properties {
  60. get;
  61. }
  62. Task<HttpResponseMessage> SendAsync (HttpRequestMessage request, CancellationToken cancellationToken);
  63. // Only used by MonoWebRequestHandler and ignored by the other handlers.
  64. void SetWebRequestTimeout (TimeSpan timeout);
  65. }
  66. }