UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
CurlHttpManager.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "HttpManager.h"
7
8class FHttpThread;
9
10#if WITH_CURL
11
12#if !WITH_CURL_XCURL
13typedef void CURLSH;
14#endif
15
16#if defined(CURL_NO_OLDIES)
17typedef struct Curl_multi CURLM;
18#else
19typedef void CURLM;
20#endif
21
22class FCurlHttpManager : public FHttpManager
23{
24public:
25 static void InitCurl();
26 static void ShutdownCurl();
27 static bool IsInit();
28#if !WITH_CURL_XCURL
29 static CURLSH* GShareHandle;
30#endif
31 static CURLM * GMultiHandle;
32
33 static struct FCurlRequestOptions
34 {
39 , BufferSize(64*1024)
40 {}
41
43 void Log();
44
46 bool bVerifyPeer;
47
50
53
55 FString LocalHostAddr;
56
58 int32 BufferSize;
59
61 bool bAllowSeekFunction = false;
62 }
64
65 //~ Begin HttpManager Interface
66 virtual void OnBeforeFork() override;
67 virtual void OnAfterFork() override;
68 virtual void OnEndFramePostFork() override;
69 virtual void UpdateConfigs() override;
70
71public:
72 virtual bool SupportsDynamicProxy() const override;
73protected:
74 virtual FHttpThreadBase* CreateHttpThread() override;
75 //~ End HttpManager Interface
76};
77
78#endif //WITH_CURL
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
return true
Definition ExternalRpcRegistry.cpp:601
Definition HttpManager.h:116
virtual HTTP_API void OnBeforeFork()
Definition HttpManager.cpp:310
virtual HTTP_API FHttpThreadBase * CreateHttpThread()
Definition HttpManager.cpp:361
virtual HTTP_API void UpdateConfigs()
Definition HttpManager.cpp:326
virtual HTTP_API void OnAfterFork()
Definition HttpManager.cpp:315
virtual HTTP_API void OnEndFramePostFork()
Definition HttpManager.cpp:320
virtual HTTP_API bool SupportsDynamicProxy() const
Definition HttpManager.cpp:639
Definition HttpThread.h:35