// Copyright Epic Games, Inc. All Rights Reserved. #pragma once #include "GenericPlatform/GenericPlatformHttp.h" /** * Platform specific Http implementations */ class FAndroidPlatformHttp : public FGenericPlatformHttp { public: /** * Platform initialization step */ static HTTP_API void Init(); /** * Creates a platform-specific HTTP manager. * * @return NULL if default implementation is to be used */ static HTTP_API FHttpManager* CreatePlatformHttpManager(); /** * Platform shutdown step */ static HTTP_API void Shutdown(); /** * Creates a new Http request instance for the current platform * * @return request object */ static HTTP_API IHttpRequest* ConstructRequest(); /** * Get the proxy address specified by the operating system * * @return optional FString: If unset: we are unable to get information from the operating system. If set: the proxy address set by the operating system (may be blank) */ static HTTP_API TOptional GetOperatingSystemProxyAddress(); /** * Check if getting proxy information from the current operating system is supported * Useful for "Network Settings" type pages. GetProxyAddress may return an empty or populated string but that does not imply * the operating system does or does not support proxies (or that it has been implemented here) * * @return true if we are able to get proxy information from the current operating system, false if not */ static HTTP_API bool IsOperatingSystemProxyInformationSupported(); }; typedef FAndroidPlatformHttp FPlatformHttp;