aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/ext/client_config/http_connect_handshaker.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/ext/client_config/http_connect_handshaker.h')
-rw-r--r--src/core/ext/client_config/http_connect_handshaker.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/core/ext/client_config/http_connect_handshaker.h b/src/core/ext/client_config/http_connect_handshaker.h
index 6467c004ee..feb2ec13f0 100644
--- a/src/core/ext/client_config/http_connect_handshaker.h
+++ b/src/core/ext/client_config/http_connect_handshaker.h
@@ -36,10 +36,13 @@
#include "src/core/lib/channel/handshaker.h"
-/// Caller takes ownership of returned string.
+/// Caller does NOT take ownership of returned string.
char* grpc_get_http_connect_proxy_server_from_args(grpc_channel_args *args);
-/// Takes ownership of \a proxy_server.
-grpc_handshaker* grpc_http_connect_handshaker_create(char* proxy_server);
+/// Borrows references to \a proxy_server or \a server_name.
+/// The caller must ensure that they remain alive until handshaking is
+/// complete.
+grpc_handshaker* grpc_http_connect_handshaker_create(char* proxy_server,
+ char* server_name);
#endif /* GRPC_CORE_EXT_CLIENT_CONFIG_HTTP_CONNECT_HANDSHAKER_H */