BugID:25545741: update http Config.in
@@ -23,29 +23,9 @@ endif
menu "HTTP Client Configuration"
depends on AOS_COMP_HTTP
-config CONFIG_HTTPC_SESSION_NUM
- int "The maximum http session"
- default 1
- help
- The maximum number of http session
-
-config CONFIG_HTTPC_SERVER_NAME_SIZE
- int "The size of server name"
- default 64
- help
- The size of server name in bytes
-
-config CONFIG_HTTPC_DEFAULT_CLIENT
- string "HTTP client user agent"
- default "AliOS-HTTP-Client/2.1"
- help
- HTTP client user agent
-
-config CONFIG_HTTP_STATUS_SIZE
- int "http status size"
- default 32
- help
- http status size in bytes
+config CONFIG_NEW_HTTP_API
+ bool "New API"
+ default n
config CONFIG_HTTP_SECURE
bool "Support HTTP Secure"
@@ -73,19 +53,45 @@ choice
endchoice
endif
-config CONFIG_NEW_HTTP_API
- bool
- default n
+config CONFIG_HTTPC_SESSION_NUM
+ int "The maximum http session"
+ default 1
+ depends on !CONFIG_NEW_HTTP_API
+ help
+ The maximum number of http session
+
+config CONFIG_HTTPC_SERVER_NAME_SIZE
+ int "The size of server name"
+ default 64
+ depends on !CONFIG_NEW_HTTP_API
+ help
+ The size of server name in bytes
+
+config CONFIG_HTTPC_DEFAULT_CLIENT
+ string "HTTP client user agent"
+ default "AliOS-HTTP-Client/2.1"
+ depends on !CONFIG_NEW_HTTP_API
+ help
+ HTTP client user agent
+
+config CONFIG_HTTP_STATUS_SIZE
+ int "http status size"
+ default 32
+ depends on !CONFIG_NEW_HTTP_API
+ help
+ http status size in bytes
config CONFIG_HTTP_ENABLE_MUTEX
bool "Enable mutex"
default y
+ depends on !CONFIG_NEW_HTTP_API
help
Enable mutex for HTTP operation
config CONFIG_HTTP_DEBUG
bool "Enable debug"
default n
+ depends on !CONFIG_NEW_HTTP_API
help
Enable debug function
