TsgcHTTP2Client속성 › Proxy

Proxy Property

HTTP/2 연결을 HTTP CONNECT 터널 또는 SOCKS 프록시 서버를 통해 라우팅합니다.

구문

property Proxy: TsgcTCPProxy_Options read FProxy write SetProxy;

기본값

Enabled=False, Port=8080

설명

중간 프록시를 통해 HTTP/2 연결을 터널링하려면 Proxy.EnabledTrue로 설정하고 HostPort를 입력하십시오. HTTP/2는 클라이언트와 origin 간에 종단간 TLS(또는 TCP) 파이프를 요구하므로, HTTP 프록시는 CONNECT 메서드로 연결되어 암호화된 스트림을 단순히 중계합니다. 지원되는 프록시 유형(ProxyType)은 pxyHTTP, pxySocks4, pxySocks4ApxySocks5입니다. UsernamePassword는 선택 사항입니다. 익명 프록시의 경우 비워 두십시오.

예제


oHTTP2 := TsgcHTTP2Client.Create(nil);
oHTTP2.Host := 'http2.akamai.com';
oHTTP2.Port := 443;
oHTTP2.TLS := True;
oHTTP2.Proxy.Enabled := True;
oHTTP2.Proxy.Host := '80.55.44.12';
oHTTP2.Proxy.Port := 8080;
oHTTP2.Proxy.Username := 'user';
oHTTP2.Proxy.Password := 'secret';

속성으로 돌아가기