@@ -76,33 +76,33 @@ interface
7676 procedure SetFollowLocation (aData : boolean);
7777
7878 // / Gets/sets form data
79- procedure SetForm (aForm : ICurlForm );
80- function GetForm : ICurlForm ;
79+ procedure SetForm (aForm : ICurlCustomForm );
80+ function GetForm : ICurlCustomForm ;
8181
82- // / For all these options the object stores a reference to an ICurlSList
82+ // / For all these options the object stores a reference to an ICurlCustomSList
8383 // / for itself.
8484
8585 // / This points to a linked list of headers. This
8686 // / list is also used for RTSP.
87- procedure SetCustomHeaders (v : ICurlSList );
87+ procedure SetCustomHeaders (v : ICurlCustomSList );
8888 // / send linked-list of post-transfer QUOTE commands
89- procedure SetPostQuote (v : ICurlSList );
89+ procedure SetPostQuote (v : ICurlCustomSList );
9090 // / Provide a pointer to a curl_slist with variables to pass to the telnet
9191 // / negotiations. The variables should be in the format <option=value>.
9292 // / libcurl supports the options 'TTYPE', 'XDISPLOC' and 'NEW_ENV'.
9393 // / See the TELNET standard for details.
94- procedure SetTelnetOptions (v : ICurlSList );
94+ procedure SetTelnetOptions (v : ICurlCustomSList );
9595 // / send linked-list of pre-transfer QUOTE commands
96- procedure SetPreQuote (v : ICurlSList );
96+ procedure SetPreQuote (v : ICurlCustomSList );
9797 // / Set aliases for HTTP 200 in the HTTP Response header
98- procedure SetHttp200Aliases (v : ICurlSList );
98+ procedure SetHttp200Aliases (v : ICurlCustomSList );
9999 // / set the SMTP mail receiver(s)
100- procedure SetMailRcpt (v : ICurlSList );
100+ procedure SetMailRcpt (v : ICurlCustomSList );
101101 // / send linked-list of name:port:address sets
102- procedure SetResolveList (v : ICurlSList );
102+ procedure SetResolveList (v : ICurlCustomSList );
103103 // / This points to a linked list of headers used for proxy requests only,
104104 // / struct curl_slist kind
105- procedure SetProxyHeader (v : ICurlSList );
105+ procedure SetProxyHeader (v : ICurlCustomSList );
106106
107107 // / Performs the action.
108108 // / Actually does RaiseIf(PerformNe).
@@ -140,22 +140,22 @@ interface
140140 // / should bother about destruction for himself.
141141 function Clone : ICurl;
142142
143- property Form : ICurlForm read GetForm write SetForm;
143+ property Form : ICurlCustomForm read GetForm write SetForm;
144144 end ;
145145
146146 TEasyCurlImpl = class (TInterfacedObject, ICurl)
147147 private
148148 fHandle : TCurlHandle;
149149 fCustomHeaders, fPostQuote, fTelnetOptions, fPreQuote,
150- fHttp200Aliases, fMailRcpt, fResolveList, fProxyHeader : ICurlSList ;
151- fForm : ICurlForm ;
150+ fHttp200Aliases, fMailRcpt, fResolveList, fProxyHeader : ICurlCustomSList ;
151+ fForm : ICurlCustomForm ;
152152 // We won’t save a few bytes of memory; repeatable code is more important.
153153 fRecvStream, fSendStream, fHeaderStream : TCurlAutoStream;
154154
155155 procedure SetSList (
156156 aOpt : TCurlSlistOption;
157- var aOldValue : ICurlSList ;
158- aNewValue : ICurlSList );
157+ var aOldValue : ICurlCustomSList ;
158+ aNewValue : ICurlCustomSList );
159159
160160 procedure RewindStreams ;
161161 public
@@ -199,17 +199,17 @@ TEasyCurlImpl = class (TInterfacedObject, ICurl)
199199
200200 procedure SetFollowLocation (aData : boolean);
201201
202- procedure SetForm (aForm : ICurlForm );
203- function GetForm : ICurlForm ;
202+ procedure SetForm (aForm : ICurlCustomForm );
203+ function GetForm : ICurlCustomForm ;
204204
205- procedure SetCustomHeaders (v : ICurlSList );
206- procedure SetPostQuote (v : ICurlSList );
207- procedure SetTelnetOptions (v : ICurlSList );
208- procedure SetPreQuote (v : ICurlSList );
209- procedure SetHttp200Aliases (v : ICurlSList );
210- procedure SetMailRcpt (v : ICurlSList );
211- procedure SetResolveList (v : ICurlSList );
212- procedure SetProxyHeader (v : ICurlSList );
205+ procedure SetCustomHeaders (v : ICurlCustomSList );
206+ procedure SetPostQuote (v : ICurlCustomSList );
207+ procedure SetTelnetOptions (v : ICurlCustomSList );
208+ procedure SetPreQuote (v : ICurlCustomSList );
209+ procedure SetHttp200Aliases (v : ICurlCustomSList );
210+ procedure SetMailRcpt (v : ICurlCustomSList );
211+ procedure SetResolveList (v : ICurlCustomSList );
212+ procedure SetProxyHeader (v : ICurlCustomSList );
213213
214214 procedure Perform ;
215215 function PerformNe : TCurlCode;
@@ -234,7 +234,7 @@ TEasyCurlImpl = class (TInterfacedObject, ICurl)
234234 Size, NItems : NativeUInt;
235235 OutStream : pointer) : NativeUInt; cdecl; static;
236236
237- property Form : ICurlForm read GetForm write SetForm;
237+ property Form : ICurlCustomForm read GetForm write SetForm;
238238
239239 procedure CloseStreams ;
240240 end ;
@@ -525,8 +525,8 @@ function TEasyCurlImpl.GetResponseCode : longint;
525525
526526procedure TEasyCurlImpl.SetSList (
527527 aOpt : TCurlSlistOption;
528- var aOldValue : ICurlSList ;
529- aNewValue : ICurlSList );
528+ var aOldValue : ICurlCustomSList ;
529+ aNewValue : ICurlCustomSList );
530530var
531531 rawVal : PCurlSList;
532532begin
@@ -543,42 +543,42 @@ procedure TEasyCurlImpl.SetSList(
543543 SetOpt(aOpt, rawVal);
544544end ;
545545
546- procedure TEasyCurlImpl.SetCustomHeaders (v : ICurlSList );
546+ procedure TEasyCurlImpl.SetCustomHeaders (v : ICurlCustomSList );
547547begin
548548 SetSList(CURLOPT_HTTPHEADER, fCustomHeaders, v);
549549end ;
550550
551- procedure TEasyCurlImpl.SetPostQuote (v : ICurlSList );
551+ procedure TEasyCurlImpl.SetPostQuote (v : ICurlCustomSList );
552552begin
553553 SetSList(CURLOPT_POSTQUOTE, fPostQuote, v);
554554end ;
555555
556- procedure TEasyCurlImpl.SetTelnetOptions (v : ICurlSList );
556+ procedure TEasyCurlImpl.SetTelnetOptions (v : ICurlCustomSList );
557557begin
558558 SetSList(CURLOPT_TELNETOPTIONS, fTelnetOptions, v);
559559end ;
560560
561- procedure TEasyCurlImpl.SetPreQuote (v : ICurlSList );
561+ procedure TEasyCurlImpl.SetPreQuote (v : ICurlCustomSList );
562562begin
563563 SetSList(CURLOPT_PREQUOTE, fPreQuote, v);
564564end ;
565565
566- procedure TEasyCurlImpl.SetHttp200Aliases (v : ICurlSList );
566+ procedure TEasyCurlImpl.SetHttp200Aliases (v : ICurlCustomSList );
567567begin
568568 SetSList(CURLOPT_HTTP200ALIASES, fHttp200Aliases, v);
569569end ;
570570
571- procedure TEasyCurlImpl.SetMailRcpt (v : ICurlSList );
571+ procedure TEasyCurlImpl.SetMailRcpt (v : ICurlCustomSList );
572572begin
573573 SetSList(CURLOPT_MAIL_RCPT, fMailRcpt, v);
574574end ;
575575
576- procedure TEasyCurlImpl.SetResolveList (v : ICurlSList );
576+ procedure TEasyCurlImpl.SetResolveList (v : ICurlCustomSList );
577577begin
578578 SetSList(CURLOPT_RESOLVE, fResolveList, v);
579579end ;
580580
581- procedure TEasyCurlImpl.SetProxyHeader (v : ICurlSList );
581+ procedure TEasyCurlImpl.SetProxyHeader (v : ICurlCustomSList );
582582begin
583583 SetSList(CURLOPT_PROXYHEADER, fProxyHeader, v);
584584end ;
@@ -600,7 +600,7 @@ procedure TEasyCurlImpl.SetSslVerifyPeer(aData : boolean);
600600 SetOpt(CURLOPT_SSL_VERIFYPEER, aData);
601601end ;
602602
603- procedure TEasyCurlImpl.SetForm (aForm : ICurlForm );
603+ procedure TEasyCurlImpl.SetForm (aForm : ICurlCustomForm );
604604begin
605605 if aForm <> nil then begin
606606 SetOpt(CURLOPT_HTTPPOST, aForm.RawValue);
@@ -612,7 +612,7 @@ procedure TEasyCurlImpl.SetForm(aForm : ICurlForm);
612612 fForm := aForm;
613613end ;
614614
615- function TEasyCurlImpl.GetForm : ICurlForm ;
615+ function TEasyCurlImpl.GetForm : ICurlCustomForm ;
616616begin
617617 Result := fForm;
618618end ;
0 commit comments