Handle both HTTP & HTTPS in HttpClientSession; remove macro WEBCC_ENABLE_SSL.

This commit is contained in:
Chunting Gu
2019-03-06 13:46:19 +08:00
parent 9b8304f06c
commit ffa0794926
9 changed files with 171 additions and 72 deletions
+3 -6
View File
@@ -30,6 +30,7 @@ set(HEADERS
http_response.h
http_response_parser.h
http_server.h
http_ssl_client.h
# http_ssl_async_client.h
queue.h
url.h
@@ -53,6 +54,7 @@ set(SOURCES
http_response.cc
http_response_parser.cc
http_server.cc
http_ssl_client.cc
# http_ssl_async_client.cc
logger.cc
url.cc
@@ -61,7 +63,7 @@ set(SOURCES
if(WEBCC_ENABLE_REST)
set(REST_HEADERS
# rest_async_client.h
# rest_async_client.h
# rest_client.h
rest_request_handler.h
rest_server.h
@@ -80,11 +82,6 @@ if(WEBCC_ENABLE_REST)
set(SOURCES ${SOURCES} ${REST_SOURCES})
endif()
if(WEBCC_ENABLE_SSL)
set(HEADERS ${HEADERS} http_ssl_client.h)
set(SOURCES ${SOURCES} http_ssl_client.cc)
endif()
if(WEBCC_ENABLE_SOAP)
set(SOAP_HEADERS
# soap_async_client.h