// CodeGear C++Builder
// Copyright (c) 1995, 2025 by Embarcadero Technologies, Inc.
// All rights reserved

// (DO NOT EDIT: machine generated header) 'uecHttp.pas' rev: 37.00 (Windows)

#ifndef uecHttpHPP
#define uecHttpHPP

#pragma delphiheader begin
#pragma option push
#if defined(__BORLANDC__) && !defined(__clang__)
#pragma option -w-      // All warnings off
#pragma option -Vx      // Zero-length empty class member 
#endif
#pragma pack(push,8)
#include <System.hpp>
#include <SysInit.hpp>
#include <System.SysUtils.hpp>
#include <Vcl.Forms.hpp>
#include <Winapi.Windows.hpp>
#include <System.Classes.hpp>
#include <Vcl.Controls.hpp>
#include <Vcl.Graphics.hpp>
#include <Winapi.Messages.hpp>
#include <Winapi.UrlMon.hpp>
#include <System.Generics.Collections.hpp>
#include <System.Net.URLClient.hpp>
#include <System.Net.HttpClient.hpp>
#include <System.NetConsts.hpp>
#include <Winapi.WinInet.hpp>
#include <Vcl.ExtCtrls.hpp>
#include <System.SyncObjs.hpp>

//-- user supplied -----------------------------------------------------------

namespace Uechttp
{
//-- forward type declarations -----------------------------------------------
class DELPHICLASS TuecHttp;
//-- type declarations -------------------------------------------------------
#pragma pack(push,4)
class PASCALIMPLEMENTATION TuecHttp : public System::TObject
{
	typedef System::TObject inherited;
	
private:
	System::Classes::TStringStream* FStringStream;
	bool FWininet;
	bool FAbort;
	System::UnicodeString FUserAgent;
	System::UnicodeString FReferer;
	System::UnicodeString FAuthorization;
	System::Net::Httpclient::THTTPClient* IdHTTP;
	System::Net::Httpclient::_di_IHTTPResponse IdResponse;
	int FConnexionTimeOut;
	int FResponseTimeOut;
	int FResponseCode;
	bool FKeepAlive;
	void __fastcall setUserAgent(const System::UnicodeString value);
	void __fastcall setReferer(const System::UnicodeString value);
	void __fastcall setAuthorization(const System::UnicodeString value);
	void __fastcall setKeepAlive(const bool value);
	void __fastcall setConnexionTimout(const int value);
	void __fastcall setResponseTimout(const int value);
	
public:
	__fastcall TuecHttp();
	__fastcall virtual ~TuecHttp();
	int __fastcall Get(const System::UnicodeString FUrl, System::Classes::TStream* FStream);
	System::UnicodeString __fastcall getString(const System::UnicodeString FUrl);
	System::UnicodeString __fastcall PostJson(const System::UnicodeString url, const System::UnicodeString json);
	void __fastcall setProxyParams(const System::UnicodeString server, const int port, const System::UnicodeString username = System::UnicodeString(), System::UnicodeString password = System::UnicodeString());
	System::UnicodeString __fastcall HeaderValue(const System::UnicodeString value);
	void __fastcall setHeader(const System::UnicodeString header, const System::UnicodeString value);
	__property bool Abort = {read=FAbort, write=FAbort, nodefault};
	__property bool KeepAlive = {read=FKeepAlive, write=setKeepAlive, nodefault};
	__property int ResponseCode = {read=FResponseCode, nodefault};
	__property System::UnicodeString UserAgent = {read=FUserAgent, write=setUserAgent};
	__property System::UnicodeString Referer = {read=FReferer, write=setReferer};
	__property System::UnicodeString Authorization = {read=FAuthorization, write=setAuthorization};
	__property int ConnexionTimeOut = {read=FConnexionTimeOut, write=setConnexionTimout, nodefault};
	__property int ResponseTimeOut = {read=FResponseTimeOut, write=setResponseTimout, nodefault};
	__property System::Classes::TStringStream* StringStream = {read=FStringStream};
	__property bool Wininet = {read=FWininet, write=FWininet, nodefault};
};

#pragma pack(pop)

//-- var, const, procedure ---------------------------------------------------
}	/* namespace Uechttp */
#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_UECHTTP)
using namespace Uechttp;
#endif
#pragma pack(pop)
#pragma option pop

#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif	// uecHttpHPP
