UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
IWebBrowserCookieManager.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2#pragma once
3
4#include "CoreMinimal.h"
5
7{
8public:
9 // The cookie name.
10 FString Name;
11
12 // The cookie value.
13 FString Value;
14
15 // If is empty a host cookie will be created instead of a domain
16 // cookie. Domain cookies are stored with a leading "." and are visible to
17 // sub-domains whereas host cookies are not.
18 FString Domain;
19
20 // If is non-empty only URLs at or below the path will get the cookie
21 // value.
22 FString Path;
23
24 // If true the cookie will only be sent for HTTPS requests.
25 bool bSecure;
26
27 // If true the cookie will only be sent for HTTP requests.
29
30 // If true the cookie will expire at the specified Expires datetime.
32
33 // The cookie expiration date is only valid if bHasExpires is true.
35};
36
38{
39public:
40 typedef struct FWebBrowserCookie FCookie;
41public:
42
55 virtual void SetCookie(const FString& URL, const FCookie& Cookie, TFunction<void(bool)> Completed = nullptr) = 0;
56
67 virtual void DeleteCookies(const FString& URL = TEXT(""), const FString& CookieName = TEXT(""), TFunction<void(int)> Completed = nullptr) = 0;
68};
#define TEXT(x)
Definition Platform.h:1272
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition IWebBrowserCookieManager.h:38
virtual void SetCookie(const FString &URL, const FCookie &Cookie, TFunction< void(bool)> Completed=nullptr)=0
virtual void DeleteCookies(const FString &URL=TEXT(""), const FString &CookieName=TEXT(""), TFunction< void(int)> Completed=nullptr)=0
Definition AndroidPlatformMisc.h:14
Definition DateTime.h:76
Definition IWebBrowserCookieManager.h:7
bool bSecure
Definition IWebBrowserCookieManager.h:25
FString Value
Definition IWebBrowserCookieManager.h:13
FDateTime Expires
Definition IWebBrowserCookieManager.h:34
bool bHttpOnly
Definition IWebBrowserCookieManager.h:28
FString Name
Definition IWebBrowserCookieManager.h:10
FString Path
Definition IWebBrowserCookieManager.h:22
FString Domain
Definition IWebBrowserCookieManager.h:18
bool bHasExpires
Definition IWebBrowserCookieManager.h:31