WebCookie.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 "WebCookie.generated.h"
  10. USTRUCT(BlueprintType)
  11. struct BASEBROWSER_API FWebCookie
  12. {
  13. GENERATED_USTRUCT_BODY()
  14. // The cookie name.
  15. UPROPERTY(BlueprintReadWrite, Category = "Web View")
  16. FString Name;
  17. // The cookie value.
  18. UPROPERTY(BlueprintReadWrite, Category = "Web View")
  19. FString Value;
  20. // If is empty a host cookie will be created instead of a domain
  21. // cookie. Domain cookies are stored with a leading "." and are visible to
  22. // sub-domains whereas host cookies are not.
  23. UPROPERTY(BlueprintReadWrite, Category = "Web View")
  24. FString Domain;
  25. // If is non-empty only URLs at or below the path will get the cookie
  26. // value.
  27. UPROPERTY(BlueprintReadWrite, Category = "Web View")
  28. FString Path;
  29. // If true the cookie will only be sent for HTTPS requests.
  30. UPROPERTY(BlueprintReadWrite, Category = "Web View")
  31. bool bSecure=false;
  32. // If true the cookie will only be sent for HTTP requests.
  33. UPROPERTY(BlueprintReadWrite, Category = "Web View")
  34. bool bHttpOnly=false;
  35. // If true the cookie will expire at the specified Expires datetime.
  36. UPROPERTY(BlueprintReadWrite, Category = "Web View")
  37. bool bHasExpires=false;
  38. // The cookie expiration date is only valid if bHasExpires is true.
  39. UPROPERTY(BlueprintReadWrite, Category = "Web View")
  40. FDateTime Expires;
  41. };