CefWebCookie.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // Copyright aXiuShen. All Rights Reserved.
  2. #pragma once
  3. #include "CoreMinimal.h"
  4. #include "Layout/Visibility.h"
  5. #include "Input/Reply.h"
  6. #include "Widgets/DeclarativeSyntaxSupport.h"
  7. #include "Widgets/SCompoundWidget.h"
  8. #include "Framework/SlateDelegates.h"
  9. #include "warp_macro.h"
  10. namespace webview {
  11. struct FWebCookie
  12. {
  13. // The cookie name.
  14. FString Name;
  15. // The cookie value.
  16. FString Value;
  17. // If is empty a host cookie will be created instead of a domain
  18. // cookie. Domain cookies are stored with a leading "." and are visible to
  19. // sub-domains whereas host cookies are not.
  20. FString Domain;
  21. // If is non-empty only URLs at or below the path will get the cookie
  22. // value.
  23. FString Path;
  24. // If true the cookie will only be sent for HTTPS requests.
  25. bool bSecure = false;
  26. // If true the cookie will only be sent for HTTP requests.
  27. bool bHttpOnly = false;
  28. // If true the cookie will expire at the specified Expires datetime.
  29. bool bHasExpires = false;
  30. // The cookie expiration date is only valid if bHasExpires is true.
  31. FDateTime Expires;
  32. };
  33. }