blob: 5042c61becdfcb9f78e0029d4d56eba6402110fb [file] [log] [blame]
Craig Tilleraf691802015-06-23 14:57:07 -07001/*
2 *
Jan Tattermusch7897ae92017-06-07 22:57:36 +02003 * Copyright 2016 gRPC authors.
Craig Tilleraf691802015-06-23 14:57:07 -07004 *
Jan Tattermusch7897ae92017-06-07 22:57:36 +02005 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
Craig Tilleraf691802015-06-23 14:57:07 -07008 *
Jan Tattermusch7897ae92017-06-07 22:57:36 +02009 * http://www.apache.org/licenses/LICENSE-2.0
Craig Tilleraf691802015-06-23 14:57:07 -070010 *
Jan Tattermusch7897ae92017-06-07 22:57:36 +020011 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
Craig Tilleraf691802015-06-23 14:57:07 -070016 *
17 */
18
Craig Tillerd608cd62017-04-02 16:23:17 -070019#ifndef GRPC_CORE_EXT_FILTERS_CLIENT_CHANNEL_HTTP_CONNECT_HANDSHAKER_H
20#define GRPC_CORE_EXT_FILTERS_CLIENT_CHANNEL_HTTP_CONNECT_HANDSHAKER_H
Craig Tillereb3b12e2015-06-26 14:42:49 -070021
Mark D. Roth1cae1312017-01-24 09:07:51 -080022/// Channel arg indicating the server in HTTP CONNECT request (string).
23/// The presence of this arg triggers the use of HTTP CONNECT.
Mark D. Roth37225c42017-01-18 07:23:36 -080024#define GRPC_ARG_HTTP_CONNECT_SERVER "grpc.http_connect_server"
25
Mark D. Rothb3242872017-01-18 07:46:30 -080026/// Channel arg indicating HTTP CONNECT headers (string).
27/// Multiple headers are separated by newlines. Key/value pairs are
28/// seperated by colons.
29#define GRPC_ARG_HTTP_CONNECT_HEADERS "grpc.http_connect_headers"
Craig Tillereb3b12e2015-06-26 14:42:49 -070030
Yash Tibrewala7e6d652017-09-20 18:56:37 -070031#ifdef __cplusplus
32extern "C" {
33#endif
34
Mark D. Roth1f0f23c2017-01-06 13:07:19 -080035/// Registers handshaker factory.
36void grpc_http_connect_register_handshaker_factory();
37
Yash Tibrewala7e6d652017-09-20 18:56:37 -070038#ifdef __cplusplus
39}
40#endif
41
42#endif /* GRPC_CORE_EXT_FILTERS_CLIENT_CHANNEL_HTTP_CONNECT_HANDSHAKER_H */