Sunday, 23 April 2023
  2 Replies
  396 Visits
  Subscribe
Hello,
I'm busy writing a stock app. I'd like to use http2 requests using esegece websockets.

like:
oClient := TsgcHTTP2Client.Create(nil);
oClient.OnHTTP2Response := OnHTTP2ResponseEvent;
oClient.Get('https://www.google.com');

procedure OnHTTP2ResponseEvent(Sender: TObject; const
Connection: TsgcHTTP2ConnectionClient; const Request:
TsgcHTTP2RequestProperty; const Response: TsgcHTTP2ResponseProperty);
begin
ShowMessage(Response.DataString);
end;


But somehow I can't create a TsgcHTTP2Client object due to the fact that the sgcHTTP2_Client;.pas file has the
sgcHTTP2_Client made unavailable because of the $define SGC_HTTP2

Can anybody help me enabling the TsgcHTTP2Client functionality ?

Thanks a lot.
Attachments (1)