Skip to content

Commit 4825acf

Browse files
authored
Added const to aws_socket_options and aws_http_proxy_options in aws_w… (#347)
* Added const to aws_socket_options, aws_http_proxy_options, and aws_tls_connection_options in aws_websocket_client_connection_options * Added const to aws_tls_connection_options
1 parent f774425 commit 4825acf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/aws/http/websocket.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,20 +140,20 @@ struct aws_websocket_client_connection_options {
140140
* Required.
141141
* aws_websocket_client_connect() makes a copy.
142142
*/
143-
struct aws_socket_options *socket_options;
143+
const struct aws_socket_options *socket_options;
144144

145145
/**
146146
* Optional.
147147
* aws_websocket_client_connect() deep-copies all contents except the `aws_tls_ctx`,
148148
* which must outlive the the connection.
149149
*/
150-
struct aws_tls_connection_options *tls_options;
150+
const struct aws_tls_connection_options *tls_options;
151151

152152
/**
153153
* Optional
154154
* Configuration options related to http proxy usage.
155155
*/
156-
struct aws_http_proxy_options *proxy_options;
156+
const struct aws_http_proxy_options *proxy_options;
157157

158158
/**
159159
* Required.

0 commit comments

Comments
 (0)