CefUrlRequestFlags.cs 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. //
  2. // This file manually written from cef/include/internal/cef_types.h.
  3. // C API name: cef_urlrequest_flags_t.
  4. //
  5. namespace Xilium.CefGlue
  6. {
  7. using System;
  8. /// <summary>
  9. /// Flags used to customize the behavior of CefURLRequest.
  10. /// </summary>
  11. [Flags]
  12. public enum CefUrlRequestOptions
  13. {
  14. /// <summary>
  15. /// Default behavior.
  16. /// </summary>
  17. None = 0,
  18. /// <summary>
  19. /// If set the cache will be skipped when handling the request. Setting this
  20. /// value is equivalent to specifying the "Cache-Control: no-cache" request
  21. /// header. Setting this value in combination with UR_FLAG_ONLY_FROM_CACHE will
  22. /// cause the request to fail.
  23. /// </summary>
  24. SkipCache = 1 << 0,
  25. /// <summary>
  26. /// If set the request will fail if it cannot be served from the cache (or some
  27. /// equivalent local store). Setting this value is equivalent to specifying the
  28. /// "Cache-Control: only-if-cached" request header. Setting this value in
  29. /// combination with UR_FLAG_SKIP_CACHE or UR_FLAG_DISABLE_CACHE will cause the
  30. /// request to fail.
  31. /// </summary>
  32. OnlyFromCache = 1 << 1,
  33. /// <summary>
  34. /// If set the cache will not be used at all. Setting this value is equivalent
  35. /// to specifying the "Cache-Control: no-store" request header. Setting this
  36. /// value in combination with UR_FLAG_ONLY_FROM_CACHE will cause the request to
  37. /// fail.
  38. /// </summary>
  39. DisableCache = 1 << 2,
  40. /// <summary>
  41. /// If set user name, password, and cookies may be sent with the request, and
  42. /// cookies may be saved from the response.
  43. /// </summary>
  44. AllowStoredCredentials = 1 << 3,
  45. /// <summary>
  46. /// If set upload progress events will be generated when a request has a body.
  47. /// </summary>
  48. ReportUploadProgress = 1 << 4,
  49. /// <summary>
  50. /// If set the <c>CefUrlRequestClient.OnDownloadData</c> method will not be called.
  51. /// </summary>
  52. NoDownloadData = 1 << 5,
  53. /// <summary>
  54. /// If set 5XX redirect errors will be propagated to the observer instead of
  55. /// automatically re-tried. This currently only applies for requests
  56. /// originated in the browser process.
  57. /// </summary>
  58. NoRetryOn5XX = 1 << 6,
  59. /// <summary>
  60. /// If set 3XX responses will cause the fetch to halt immediately rather than
  61. /// continue through the redirect.
  62. /// </summary>
  63. StopOnRedirect = 1 << 7,
  64. }
  65. }