public interface ProxyHandler
| Modifier and Type | Interface and Description |
|---|---|
static class |
ProxyHandler.ProxyResponseResult |
| Modifier and Type | Method and Description |
|---|---|
String |
createProxyRequest(String hostName,
Map<String,String> additionalHeaders)
Creates a CONNECT request to the provided
hostName and adds additionalHeaders to the request. |
ProxyHandler.ProxyResponseResult |
validateProxyResponse(ByteBuffer buffer)
Verifies that
buffer contains a successful CONNECT response. |
String createProxyRequest(String hostName, Map<String,String> additionalHeaders)
hostName and adds additionalHeaders to the request.hostName - Name of the host to connect to.additionalHeaders - Optional. Additional headers to add to the request.ProxyHandler.ProxyResponseResult validateProxyResponse(ByteBuffer buffer)
buffer contains a successful CONNECT response.buffer - Buffer containing the HTTP response.Copyright © 2020. All rights reserved.