// Borland C++ Builder
// Copyright (c) 1995, 2005 by Borland Software Corporation
// All rights reserved

// (DO NOT EDIT: machine generated header) 'Idhttpproxyserver.pas' rev: 10.00

#ifndef IdhttpproxyserverHPP
#define IdhttpproxyserverHPP

#pragma delphiheader begin
#pragma option push
#pragma option -w-      // All warnings off
#pragma option -Vx      // Zero-length empty class member functions
#pragma pack(push,8)
#include <System.hpp>	// Pascal unit
#include <Sysinit.hpp>	// Pascal unit
#include <Idobjs.hpp>	// Pascal unit
#include <Idassignednumbers.hpp>	// Pascal unit
#include <Idglobal.hpp>	// Pascal unit
#include <Idheaderlist.hpp>	// Pascal unit
#include <Idtcpconnection.hpp>	// Pascal unit
#include <Idcmdtcpserver.hpp>	// Pascal unit
#include <Idcommandhandlers.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <Idcustomtcpserver.hpp>	// Pascal unit
#include <Idcomponent.hpp>	// Pascal unit
#include <Idbasecomponent.hpp>	// Pascal unit

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

namespace Idhttpproxyserver
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TIdHTTPProxyServer;
typedef void __fastcall (__closure *TOnHTTPDocument)(TIdHTTPProxyServer* ASender, const AnsiString ADocument, Classes::TStream* &VStream, const Idheaderlist::TIdHeaderList* AHeaders);

class PASCALIMPLEMENTATION TIdHTTPProxyServer : public Idcmdtcpserver::TIdCmdTCPServer 
{
	typedef Idcmdtcpserver::TIdCmdTCPServer inherited;
	
protected:
	TOnHTTPDocument FOnHTTPDocument;
	void __fastcall CommandGET(Idcommandhandlers::TIdCommand* ASender);
	void __fastcall CommandPOST(Idcommandhandlers::TIdCommand* ASender);
	void __fastcall CommandHEAD(Idcommandhandlers::TIdCommand* ASender);
	void __fastcall CommandConnect(Idcommandhandlers::TIdCommand* ASender);
	void __fastcall DoHTTPDocument(const AnsiString ADocument, Classes::TStream* &VStream, const Idheaderlist::TIdHeaderList* AHeaders);
	virtual void __fastcall InitializeCommandHandlers(void);
	void __fastcall TransferData(Idtcpconnection::TIdTCPConnection* ASrc, Idtcpconnection::TIdTCPConnection* ADest, const AnsiString ADocument, const int ASize, const Idheaderlist::TIdHeaderList* AHeaders);
	virtual void __fastcall InitComponent(void);
	
__published:
	__property DefaultPort  = {default=8080};
	__property TOnHTTPDocument OnHTTPDocument = {read=FOnHTTPDocument, write=FOnHTTPDocument};
public:
	#pragma option push -w-inl
	/* TIdCmdTCPServer.Destroy */ inline __fastcall virtual ~TIdHTTPProxyServer(void) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TIdBaseComponent.Create */ inline __fastcall TIdHTTPProxyServer(Classes::TComponent* AOwner)/* overload */ : Idcmdtcpserver::TIdCmdTCPServer(AOwner) { }
	#pragma option pop
	
};


//-- var, const, procedure ---------------------------------------------------
static const Word IdPORT_HTTPProxy = 0x1f90;

}	/* namespace Idhttpproxyserver */
using namespace Idhttpproxyserver;
#pragma pack(pop)
#pragma option pop

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