diff options
author | Vizerai <jsking@google.com> | 2017-01-26 13:26:30 -0800 |
---|---|---|
committer | Vizerai <jsking@google.com> | 2017-01-26 13:26:30 -0800 |
commit | e0cd44aa01cfa697002c7c8884f98d65cc2f7ebd (patch) | |
tree | c44e00ea6e4a6350d2af4f514ac268bb9a224544 /src/core/ext/client_channel/http_connect_handshaker.h | |
parent | b0b86d7504dc7cf25d2616927196203c8ee41373 (diff) | |
parent | 1291fd4b2f9f502f412c3d6cd5dd5fdc18092842 (diff) |
Merge branch 'master' of https://github.com/Vizerai/grpc into tracing_API
Diffstat (limited to 'src/core/ext/client_channel/http_connect_handshaker.h')
-rw-r--r-- | src/core/ext/client_channel/http_connect_handshaker.h | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/core/ext/client_channel/http_connect_handshaker.h b/src/core/ext/client_channel/http_connect_handshaker.h index c2e68de716..3059d551e3 100644 --- a/src/core/ext/client_channel/http_connect_handshaker.h +++ b/src/core/ext/client_channel/http_connect_handshaker.h @@ -34,17 +34,14 @@ #ifndef GRPC_CORE_EXT_CLIENT_CHANNEL_HTTP_CONNECT_HANDSHAKER_H #define GRPC_CORE_EXT_CLIENT_CHANNEL_HTTP_CONNECT_HANDSHAKER_H -#include "src/core/lib/channel/handshaker.h" -#include "src/core/lib/http/parser.h" +/// Channel arg indicating the server in HTTP CONNECT request (string). +/// The presence of this arg triggers the use of HTTP CONNECT. +#define GRPC_ARG_HTTP_CONNECT_SERVER "grpc.http_connect_server" -/// Creates a new HTTP CONNECT handshaker. -grpc_handshaker* grpc_http_connect_handshaker_create(const char* proxy_server, - grpc_http_header* headers, - size_t num_headers); - -/// Returns the name of the proxy to use, or NULL if no proxy is configured. -/// Caller takes ownership of result. -char* grpc_get_http_proxy_server(); +/// Channel arg indicating HTTP CONNECT headers (string). +/// Multiple headers are separated by newlines. Key/value pairs are +/// seperated by colons. +#define GRPC_ARG_HTTP_CONNECT_HEADERS "grpc.http_connect_headers" /// Registers handshaker factory. void grpc_http_connect_register_handshaker_factory(); |