HTTP/2 Client
Native HTTP/2 client component for Delphi/C++Builder. Multiplexed streams, header compression (HPACK), TLS via OpenSSL or Windows SChannel and full RFC 9113 framing.
Native HTTP/2 client component for Delphi/C++Builder. Multiplexed streams, header compression (HPACK), TLS via OpenSSL or Windows SChannel and full RFC 9113 framing.
Native HTTP/2 client — multiplexed streams over a single TLS connection, HPACK header compression, prior knowledge or ALPN upgrade, no IIS / Apache / Indy dependency.
TsgcHTTP2Client
Windows, macOS, Linux, iOS, Android
Standard / Professional / Enterprise
Drop a TsgcHTTP2Client on a form, choose IOHandler (OpenSSL or SChannel), then call Get / Post / Put / Delete with the target URL.
uses
sgcHTTP, sgcHTTP2;
var
HTTP2: TsgcHTTP2Client;
begin
HTTP2 := TsgcHTTP2Client.Create(nil);
HTTP2.TLSOptions.IOHandler := iohSChannel; // or iohOpenSSL
// Add custom headers
HTTP2.Request.CustomHeaders.Add('authorization: Bearer eyJ...');
// GET
Memo1.Text := HTTP2.Get('https://api.example.com/v1/items');
ShowMessage(IntToStr(HTTP2.Response.Status));
end;
// uses: sgcHTTP, sgcHTTP2
TsgcHTTP2Client *HTTP2 = new TsgcHTTP2Client(this);
HTTP2->TLSOptions->IOHandler = iohSChannel;
HTTP2->Request->CustomHeaders->Add("authorization: Bearer eyJ...");
Memo1->Text = HTTP2->Get("https://api.example.com/v1/items");
A first-class HTTP/2 client built on the sgcQUIC / sgcHTTP2 framing engine — no IIS / Apache / Indy.
Multiple GET / POST / PUT / DELETE calls share a single TLS connection. OnHTTP2StreamData surfaces server-push promises and per-stream events.
Built-in HPACK encoder/decoder — CustomHeaders are compressed against the dynamic table for every request. Cookies and auth headers are reused across streams.
Set TLSOptions.IOHandler to iohSChannel (Windows kernel TLS, no DLLs) or iohOpenSSL (cross-platform). ALPN h2 negotiation happens during the handshake.
For h2c (HTTP/2 over plaintext) set Specifications.HTTP2_PriorKnowledge — useful for service-mesh sidecars and trusted internal links.
Authentication.Token, Authentication.Basic and Authentication.NTLM handle the common schemes. Pair with TsgcHTTP_JWT_Client to mint and refresh JWTs.
The same component drives the Apple Push Notification HTTP/2 endpoint and Firebase Cloud Messaging V1 — see those pages for typed wiring.
Springe direkt zur Komponentenreferenz, lade das einsatzbereite Demo-Projekt herunter und teste die Testversion.
| Online Help — TsgcHTTP2Client Vollständige Eigenschaften-, Methoden- und Ereignisreferenz für diese Komponente. | Öffnen | |
| Demo Project — Demos\20.HTTP_Protocol\01.HTTP2_Server_And_Client Einsatzbereites Beispielprojekt. Im sgcWebSockets-Paket enthalten — lade unten die Testversion herunter. | Öffnen | |
| Technisches Dokument (PDF) Funktionen, Schnellstart, Codebeispiele für Delphi & C++ Builder und Primärquellenreferenzen — nur für diese Komponente. | Öffnen | |
| Benutzerhandbuch (PDF) Umfassendes Handbuch zu jeder Komponente der Bibliothek. | Öffnen |