diff options
author | Seonah Moon <seonah1.moon@samsung.com> | 2024-07-04 21:03:47 +0900 |
---|---|---|
committer | Seonah Moon <seonah1.moon@samsung.com> | 2024-07-05 11:06:01 +0900 |
commit | 35684ee664121eb54f9607a20693126c7dc8417d (patch) | |
tree | 49a005593597a9057d9f70c283d359bac23ac0cd | |
parent | e67e8547364e6b6adaca362500281dd80561ae44 (diff) | |
download | http-accepted/tizen_unified.tar.gz http-accepted/tizen_unified.tar.bz2 http-accepted/tizen_unified.zip |
Deprecate HTTP APItizen_9.0_m2_releaseaccepted/tizen/unified/x/asan/20240813.225936accepted/tizen/unified/x/20240723.085959accepted/tizen/unified/toolchain/20240812.131701accepted/tizen/unified/dev/20240724.105958accepted/tizen/unified/20240723.034758accepted/tizen/9.0/unified/20241030.234227tizen_9.0accepted/tizen_unified_x_asanaccepted/tizen_unified_xaccepted/tizen_unified_toolchainaccepted/tizen_unified_devaccepted/tizen_unifiedaccepted/tizen_9.0_unified
Change-Id: I5e6d44655fdcbd2350b4e640fe60188afca96a41
-rwxr-xr-x | doc/http_doc.h | 14 | ||||
-rw-r--r-- | include/http.h | 177 | ||||
-rw-r--r-- | src/http_common.c | 2 | ||||
-rw-r--r-- | src/http_session.c | 7 | ||||
-rw-r--r-- | src/http_transaction.c | 27 |
5 files changed, 166 insertions, 61 deletions
diff --git a/doc/http_doc.h b/doc/http_doc.h index 2b71d5c..6a3b23f 100755 --- a/doc/http_doc.h +++ b/doc/http_doc.h @@ -20,7 +20,7 @@ /** * @ingroup CAPI_NETWORK_FRAMEWORK - * @defgroup CAPI_NETWORK_HTTP_MODULE HTTP + * @defgroup CAPI_NETWORK_HTTP_MODULE HTTP (Deprecated) * @brief The HTTP API provides functions for communication with server according to the HTTP protocol. * @section CAPI_NETWORK_HTTP_MODULE_HEADER Required Header * \#include <http.h> @@ -36,7 +36,7 @@ /** * @ingroup CAPI_NETWORK_HTTP_MODULE - * @defgroup CAPI_NETWORK_HTTP_SESSION_MODULE HTTP Session + * @defgroup CAPI_NETWORK_HTTP_SESSION_MODULE HTTP Session (Deprecated) * @brief The HTTP Session API provides functions for managing HTTP session. * @section CAPI_NETWORK_HTTP_SESSION_MODULE_HEADER Required Header * \#include <http.h> @@ -52,7 +52,7 @@ /** * @ingroup CAPI_NETWORK_HTTP_SESSION_MODULE - * @defgroup CAPI_NETWORK_HTTP_TRANSACTION_MODULE HTTP Transaction + * @defgroup CAPI_NETWORK_HTTP_TRANSACTION_MODULE HTTP Transaction (Deprecated) * @brief The HTTP Transaction API provides functions for managing HTTP transactions. * @section CAPI_NETWORK_HTTP_TRANSACTION_MODULE_HEADER Required Header * \#include <http.h> @@ -69,7 +69,7 @@ /** * @ingroup CAPI_NETWORK_HTTP_TRANSACTION_MODULE - * @defgroup CAPI_NETWORK_HTTP_REQUEST_MODULE HTTP Request + * @defgroup CAPI_NETWORK_HTTP_REQUEST_MODULE HTTP Request (Deprecated) * @brief It manages HTTP request. * @section CAPI_NETWORK_HTTP_REQUEST_MODULE_HEADER Required Header * \#include <http.h> @@ -84,7 +84,7 @@ /** * @ingroup CAPI_NETWORK_HTTP_TRANSACTION_MODULE - * @defgroup CAPI_NETWORK_HTTP_RESPONSE_MODULE HTTP Response + * @defgroup CAPI_NETWORK_HTTP_RESPONSE_MODULE HTTP Response (Deprecated) * @brief It manages HTTP response. * @section CAPI_NETWORK_HTTP_RESPONSE_MODULE_HEADER Required Header * \#include <http.h> @@ -97,7 +97,7 @@ /** * @ingroup CAPI_NETWORK_HTTP_TRANSACTION_MODULE - * @defgroup CAPI_NETWORK_HTTP_HEADER_MODULE HTTP Header + * @defgroup CAPI_NETWORK_HTTP_HEADER_MODULE HTTP Header (Deprecated) * @brief It manages custom header. * @section CAPI_NETWORK_HTTP_HEADER_MODULE_HEADER Required Header * \#include <http.h> @@ -109,7 +109,7 @@ /** * @ingroup CAPI_NETWORK_HTTP_TRANSACTION_MODULE - * @defgroup CAPI_NETWORK_HTTP_AUTHENTICATION_MODULE HTTP Authentication + * @defgroup CAPI_NETWORK_HTTP_AUTHENTICATION_MODULE HTTP Authentication (Deprecated) * @brief It manages HTTP Authentication and credential. * @section CAPI_NETWORK_HTTP_AUTHENTICATION_MODULE_HEADER Required Header * \#include <http.h> diff --git a/include/http.h b/include/http.h index 1c15047..263c2d6 100644 --- a/include/http.h +++ b/include/http.h @@ -39,6 +39,7 @@ extern "C" { /** + * @deprecated Deprecated since 9.0 * @brief The HTTP Session handle. * @since_tizen 3.0 */ @@ -46,6 +47,7 @@ typedef void * http_session_h; /** + * @deprecated Deprecated since 9.0 * @brief The HTTP Transaction handle. * @since_tizen 3.0 */ @@ -64,6 +66,7 @@ typedef void * http_transaction_h; /** + * @deprecated Deprecated since 9.0 * @brief Enumeration for the HTTP session. * @since_tizen 3.0 */ @@ -85,6 +88,7 @@ typedef enum { /** + * @deprecated Deprecated since 9.0 * @brief Enumeration for the HTTP method. * @since_tizen 3.0 */ @@ -101,6 +105,7 @@ typedef enum { /** + * @deprecated Deprecated since 9.0 * @brief Enumeration for the HTTP version. * @since_tizen 3.0 */ @@ -111,6 +116,7 @@ typedef enum { /** + * @deprecated Deprecated since 9.0 * @brief Enumeration for transfer pause state. * @since_tizen 3.0 */ @@ -122,6 +128,7 @@ typedef enum { /** + * @deprecated Deprecated since 9.0 * @brief Enumeration for the HTTP error code. * @since_tizen 3.0 */ @@ -142,6 +149,7 @@ typedef enum { /** + * @deprecated Deprecated since 9.0 * @brief Enumeration for the HTTP status code. * @since_tizen 3.0 */ @@ -191,6 +199,7 @@ typedef enum { /** + * @deprecated Deprecated since 9.0 * @brief Enumeration for the HTTP authentication schemes. * @since_tizen 3.0 */ @@ -207,6 +216,7 @@ typedef enum { /** + * @deprecated Deprecated since 9.0 * @brief Called when the HTTP header is received. * @since_tizen 3.0 * @remarks The @a header should be released using free(). \n @@ -221,6 +231,7 @@ typedef void (*http_transaction_header_cb)(http_transaction_h http_transaction, /** + * @deprecated Deprecated since 9.0 * @brief Called when the HTTP response is received. * @since_tizen 3.0 * @param[in] http_transaction The HTTP transaction handle @@ -234,6 +245,7 @@ typedef void (*http_transaction_body_cb)(http_transaction_h http_transaction, ch /** + * @deprecated Deprecated since 9.0 * @brief Called when the HTTP ready to write event is received. * @since_tizen 3.0 * @param[in] http_transaction The HTTP transaction handle @@ -245,6 +257,7 @@ typedef void (*http_transaction_write_cb)(http_transaction_h http_transaction, i /** + * @deprecated Deprecated since 9.0 * @brief Called when the HTTP transaction is completed. * @since_tizen 3.0 * @param[in] http_transaction The HTTP transaction handle @@ -255,6 +268,7 @@ typedef void (*http_transaction_completed_cb)(http_transaction_h http_transactio /** + * @deprecated Deprecated since 9.0 * @brief Called when the HTTP transaction is aborted. * @details Following error codes can be delivered. \n * #HTTP_ERROR_OPERATION_FAILED, \n @@ -272,6 +286,7 @@ typedef void (*http_transaction_aborted_cb)(http_transaction_h http_transaction, /** + * @deprecated Deprecated since 9.0 * @brief Called to notify when the content body of the response message is being downloaded or uploaded. * @since_tizen 3.0 * @param[in] http_transaction The HTTP transaction handle @@ -286,6 +301,7 @@ typedef void (*http_transaction_progress_cb)(http_transaction_h http_transaction /** + * @deprecated Deprecated since 9.0 * @brief Initializes the HTTP module. * @since_tizen 3.0 * @return @c 0 on success, @@ -295,10 +311,11 @@ typedef void (*http_transaction_progress_cb)(http_transaction_h http_transaction * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported * @see http_deinit() */ -int http_init(void); +int http_init(void) TIZEN_DEPRECATED_API; /** + * @deprecated Deprecated since 9.0 * @brief Deinitializes the HTTP module. * @since_tizen 3.0 * @return @c 0 on success, @@ -308,7 +325,7 @@ int http_init(void); * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported * @see http_init() */ -int http_deinit(void); +int http_deinit(void) TIZEN_DEPRECATED_API; /** @@ -323,6 +340,7 @@ int http_deinit(void); /** + * @deprecated Deprecated since 9.0 * @brief Creates the HTTP session handle. * @since_tizen 3.0 * @remarks The @a http_session should be released using http_session_destroy(). @@ -338,10 +356,11 @@ int http_deinit(void); * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported * @see http_session_destroy() */ -int http_session_create(http_session_mode_e mode, http_session_h *http_session); +int http_session_create(http_session_mode_e mode, http_session_h *http_session) TIZEN_DEPRECATED_API; /** + * @deprecated Deprecated since 9.0 * @brief Destroys the HTTP session handle. * @since_tizen 3.0 * @remarks The @a http_session should be set to NULL after using it @@ -354,10 +373,11 @@ int http_session_create(http_session_mode_e mode, http_session_h *http_session); * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported * @see http_session_create() */ -int http_session_destroy(http_session_h http_session); +int http_session_destroy(http_session_h http_session) TIZEN_DEPRECATED_API; /** + * @deprecated Deprecated since 9.0 * @brief Opens HTTP transaction from the HTTP Session. * @since_tizen 3.0 * @remarks The @a http_transaction should be released using http_transaction_destroy(). @@ -372,10 +392,11 @@ int http_session_destroy(http_session_h http_session); * @retval #HTTP_ERROR_OUT_OF_MEMORY Out of memory * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported */ -int http_session_open_transaction(http_session_h http_session, http_method_e method, http_transaction_h *http_transaction); +int http_session_open_transaction(http_session_h http_session, http_method_e method, http_transaction_h *http_transaction) TIZEN_DEPRECATED_API; /** + * @deprecated Deprecated since 9.0 * @brief Sets the value to redirect the HTTP request automatically. * @since_tizen 3.0 * @param[in] http_session The HTTP session handle @@ -388,10 +409,11 @@ int http_session_open_transaction(http_session_h http_session, http_method_e met * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported * @see http_session_get_auto_redirection() */ -int http_session_set_auto_redirection(http_session_h http_session, bool auto_redirection); +int http_session_set_auto_redirection(http_session_h http_session, bool auto_redirection) TIZEN_DEPRECATED_API; /** + * @deprecated Deprecated since 9.0 * @brief Gets the auto redirection for the HTTP request. * @since_tizen 3.0 * @param[in] http_session The HTTP session handle @@ -404,10 +426,11 @@ int http_session_set_auto_redirection(http_session_h http_session, bool auto_red * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported * @see http_session_set_auto_redirection() */ -int http_session_get_auto_redirection(http_session_h http_session, bool *auto_redirect); +int http_session_get_auto_redirection(http_session_h http_session, bool *auto_redirect) TIZEN_DEPRECATED_API; /** + * @deprecated Deprecated since 9.0 * @brief Gets the number of active transactions in the current session. * @since_tizen 3.0 * @param[in] http_session The HTTP session handle @@ -419,10 +442,11 @@ int http_session_get_auto_redirection(http_session_h http_session, bool *auto_re * @retval #HTTP_ERROR_INVALID_OPERATION Invalid operation * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported */ -int http_session_get_active_transaction_count(http_session_h http_session, int *active_transaction_count); +int http_session_get_active_transaction_count(http_session_h http_session, int *active_transaction_count) TIZEN_DEPRECATED_API; /** + * @deprecated Deprecated since 9.0 * @brief Gets the maximum number of transactions for the current session. * @since_tizen 3.0 * @param[in] http_session The HTTP session handle @@ -434,10 +458,11 @@ int http_session_get_active_transaction_count(http_session_h http_session, int * * @retval #HTTP_ERROR_INVALID_OPERATION Invalid operation * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported */ -int http_session_get_max_transaction_count(http_session_h http_session, int *transaction_count); +int http_session_get_max_transaction_count(http_session_h http_session, int *transaction_count) TIZEN_DEPRECATED_API; /** + * @deprecated Deprecated since 9.0 * @brief Destroys all transactions. * @since_tizen 3.0 * @remarks All http_transactions should be set to NULL after using it @@ -450,7 +475,7 @@ int http_session_get_max_transaction_count(http_session_h http_session, int *tra * @retval #HTTP_ERROR_OPERATION_FAILED Operation failed * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported */ -int http_session_destroy_all_transactions(http_session_h http_session); +int http_session_destroy_all_transactions(http_session_h http_session) TIZEN_DEPRECATED_API; /** @@ -465,6 +490,7 @@ int http_session_destroy_all_transactions(http_session_h http_session); /** + * @deprecated Deprecated since 9.0 * @brief Submits the HTTP request. * @since_tizen 3.0 * @privlevel public @@ -479,10 +505,11 @@ int http_session_destroy_all_transactions(http_session_h http_session); * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported * @retval #HTTP_ERROR_PERMISSION_DENIED Permission denied */ -int http_transaction_submit(http_transaction_h http_transaction); +int http_transaction_submit(http_transaction_h http_transaction) TIZEN_DEPRECATED_API; /** + * @deprecated Deprecated since 9.0 * @brief Closes the HTTP transaction handle. * @since_tizen 3.0 * @remarks The @a http_transaction should be set to NULL after using it. @@ -496,10 +523,11 @@ int http_transaction_submit(http_transaction_h http_transaction); * @see http_session_open_transaction() * @see http_transaction_open_authentication() */ -int http_transaction_destroy(http_transaction_h http_transaction); +int http_transaction_destroy(http_transaction_h http_transaction) TIZEN_DEPRECATED_API; /** + * @deprecated Deprecated since 9.0 * @brief Registers callback called when receives header. * @since_tizen 3.0 * @param[in] http_transaction The HTTP transaction handle @@ -512,10 +540,11 @@ int http_transaction_destroy(http_transaction_h http_transaction); * @retval #HTTP_ERROR_INVALID_OPERATION Invalid operation * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported */ -int http_transaction_set_received_header_cb(http_transaction_h http_transaction, http_transaction_header_cb header_cb, void* user_data); +int http_transaction_set_received_header_cb(http_transaction_h http_transaction, http_transaction_header_cb header_cb, void* user_data) TIZEN_DEPRECATED_API; /** + * @deprecated Deprecated since 9.0 * @brief Registers callback called when receives body. * @since_tizen 3.0 * @param[in] http_transaction The HTTP transaction handle @@ -528,10 +557,11 @@ int http_transaction_set_received_header_cb(http_transaction_h http_transaction, * @retval #HTTP_ERROR_INVALID_OPERATION Invalid operation * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported */ -int http_transaction_set_received_body_cb(http_transaction_h http_transaction, http_transaction_body_cb body_cb, void* user_data); +int http_transaction_set_received_body_cb(http_transaction_h http_transaction, http_transaction_body_cb body_cb, void* user_data) TIZEN_DEPRECATED_API; /** + * @deprecated Deprecated since 9.0 * @brief Registers callback called when writes data. * @since_tizen 3.0 * @param[in] http_transaction The HTTP transaction handle @@ -544,10 +574,11 @@ int http_transaction_set_received_body_cb(http_transaction_h http_transaction, h * @retval #HTTP_ERROR_INVALID_OPERATION Invalid operation * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported */ -int http_transaction_set_uploaded_cb(http_transaction_h http_transaction, http_transaction_write_cb write_cb, void* user_data); +int http_transaction_set_uploaded_cb(http_transaction_h http_transaction, http_transaction_write_cb write_cb, void* user_data) TIZEN_DEPRECATED_API; /** + * @deprecated Deprecated since 9.0 * @brief Registers callback called when transaction is completed. * @since_tizen 3.0 * @param[in] http_transaction The HTTP transaction handle @@ -560,10 +591,11 @@ int http_transaction_set_uploaded_cb(http_transaction_h http_transaction, http_t * @retval #HTTP_ERROR_INVALID_OPERATION Invalid operation * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported */ -int http_transaction_set_completed_cb(http_transaction_h http_transaction, http_transaction_completed_cb completed_cb, void* user_data); +int http_transaction_set_completed_cb(http_transaction_h http_transaction, http_transaction_completed_cb completed_cb, void* user_data) TIZEN_DEPRECATED_API; /** + * @deprecated Deprecated since 9.0 * @brief Registers callback called when transaction is aborted. * @since_tizen 3.0 * @param[in] http_transaction The HTTP transaction handle @@ -576,10 +608,11 @@ int http_transaction_set_completed_cb(http_transaction_h http_transaction, http_ * @retval #HTTP_ERROR_INVALID_OPERATION Invalid operation * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported */ -int http_transaction_set_aborted_cb(http_transaction_h http_transaction, http_transaction_aborted_cb aborted_cb, void* user_data); +int http_transaction_set_aborted_cb(http_transaction_h http_transaction, http_transaction_aborted_cb aborted_cb, void* user_data) TIZEN_DEPRECATED_API; /** + * @deprecated Deprecated since 9.0 * @brief Registers the progress callbacks. * @details Registers callback that is called when data is uploaded/downloaded. * @since_tizen 3.0 @@ -593,10 +626,11 @@ int http_transaction_set_aborted_cb(http_transaction_h http_transaction, http_tr * @retval #HTTP_ERROR_INVALID_OPERATION Invalid operation * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported */ -int http_transaction_set_progress_cb(http_transaction_h http_transaction, http_transaction_progress_cb progress_cb, void* user_data); +int http_transaction_set_progress_cb(http_transaction_h http_transaction, http_transaction_progress_cb progress_cb, void* user_data) TIZEN_DEPRECATED_API; /** + * @deprecated Deprecated since 9.0 * @brief Sets the timeout in seconds that is the timeout for waiting the transaction. * @details Sets the timeout in seconds that is the timeout for waiting the transaction. \n * A timeout value of zero means an infinite timeout. @@ -610,10 +644,11 @@ int http_transaction_set_progress_cb(http_transaction_h http_transaction, http_t * @retval #HTTP_ERROR_INVALID_OPERATION Invalid operation * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported */ -int http_transaction_set_timeout(http_transaction_h http_transaction, int timeout); +int http_transaction_set_timeout(http_transaction_h http_transaction, int timeout) TIZEN_DEPRECATED_API; /** + * @deprecated Deprecated since 9.0 * @brief Gets the timeout in seconds for the transaction. * @since_tizen 3.0 * @param[in] http_transaction The HTTP transaction handle @@ -625,10 +660,11 @@ int http_transaction_set_timeout(http_transaction_h http_transaction, int timeou * @retval #HTTP_ERROR_INVALID_OPERATION Invalid operation * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported */ -int http_transaction_get_timeout(http_transaction_h http_transaction, int *timeout); +int http_transaction_get_timeout(http_transaction_h http_transaction, int *timeout) TIZEN_DEPRECATED_API; /** + * @deprecated Deprecated since 9.0 * @brief Resumes the transaction. * @since_tizen 3.0 * @param[in] http_transaction The HTTP transaction handle @@ -640,10 +676,11 @@ int http_transaction_get_timeout(http_transaction_h http_transaction, int *timeo * @retval #HTTP_ERROR_OPERATION_FAILED Operation failed * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported */ -int http_transaction_resume(http_transaction_h http_transaction); +int http_transaction_resume(http_transaction_h http_transaction) TIZEN_DEPRECATED_API; /** + * @deprecated Deprecated since 9.0 * @brief Pauses the transaction. * @since_tizen 3.0 * @param[in] http_transaction The HTTP transaction handle @@ -656,9 +693,10 @@ int http_transaction_resume(http_transaction_h http_transaction); * @retval #HTTP_ERROR_OPERATION_FAILED Operation failed * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported */ -int http_transaction_pause(http_transaction_h http_transaction, http_pause_type_e pause_type); +int http_transaction_pause(http_transaction_h http_transaction, http_pause_type_e pause_type) TIZEN_DEPRECATED_API; /** + * @deprecated Deprecated since 9.0 * @brief Cancels the transaction. * @details This function cancels the transaction.\n * The aborted callback is invoked after using it. @@ -672,9 +710,10 @@ int http_transaction_pause(http_transaction_h http_transaction, http_pause_type_ * @retval #HTTP_ERROR_OPERATION_FAILED Operation failed * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported */ -int http_transaction_cancel(http_transaction_h http_transaction); +int http_transaction_cancel(http_transaction_h http_transaction) TIZEN_DEPRECATED_API; /** + * @deprecated Deprecated since 9.0 * @brief Sets ready to write event for a transaction. * @since_tizen 3.0 * @param[in] http_transaction The HTTP transaction handle @@ -686,10 +725,11 @@ int http_transaction_cancel(http_transaction_h http_transaction); * @retval #HTTP_ERROR_INVALID_OPERATION Invalid operation * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported */ -int http_transaction_set_ready_to_write(http_transaction_h http_transaction, bool read_to_write); +int http_transaction_set_ready_to_write(http_transaction_h http_transaction, bool read_to_write) TIZEN_DEPRECATED_API; /** + * @deprecated Deprecated since 9.0 * @brief Sets the interface name. * @since_tizen 3.0 * @param[in] http_transaction The HTTP transaction handle @@ -701,10 +741,11 @@ int http_transaction_set_ready_to_write(http_transaction_h http_transaction, boo * @retval #HTTP_ERROR_INVALID_OPERATION Invalid operation * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported */ -int http_transaction_set_interface_name(http_transaction_h http_transaction, const char *interface_name); +int http_transaction_set_interface_name(http_transaction_h http_transaction, const char *interface_name) TIZEN_DEPRECATED_API; /** + * @deprecated Deprecated since 9.0 * @brief Gets the interface name. * @since_tizen 3.0 * @remarks The @a interface_name should be freed using free(). @@ -717,10 +758,11 @@ int http_transaction_set_interface_name(http_transaction_h http_transaction, con * @retval #HTTP_ERROR_INVALID_OPERATION Invalid operation * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported */ -int http_transaction_get_interface_name(http_transaction_h http_transaction, char **interface_name); +int http_transaction_get_interface_name(http_transaction_h http_transaction, char **interface_name) TIZEN_DEPRECATED_API; /** + * @deprecated Deprecated since 9.0 * @brief Sets the flag to verify a server certificate. * @details The verify determines whether verifies the peer's certificate. * @since_tizen 3.0 @@ -733,10 +775,11 @@ int http_transaction_get_interface_name(http_transaction_h http_transaction, cha * @retval #HTTP_ERROR_INVALID_OPERATION Invalid operation * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported */ -int http_transaction_set_server_certificate_verification(http_transaction_h http_transaction, bool verify); +int http_transaction_set_server_certificate_verification(http_transaction_h http_transaction, bool verify) TIZEN_DEPRECATED_API; /** + * @deprecated Deprecated since 9.0 * @brief Gets the flag to verify a server certificate. * @since_tizen 3.0 * @param[in] http_transaction The HTTP transaction handle @@ -748,10 +791,11 @@ int http_transaction_set_server_certificate_verification(http_transaction_h http * @retval #HTTP_ERROR_INVALID_OPERATION Invalid operation * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported */ -int http_transaction_get_server_certificate_verification(http_transaction_h http_transaction, bool* verify); +int http_transaction_get_server_certificate_verification(http_transaction_h http_transaction, bool* verify) TIZEN_DEPRECATED_API; /** + * @deprecated Deprecated since 9.0 * @brief Sets the flag to allow TCP Fast Open. * @since_tizen 5.0 * @remarks TCP Fast Open depends on kernel version.\n @@ -765,9 +809,10 @@ int http_transaction_get_server_certificate_verification(http_transaction_h http * @retval #HTTP_ERROR_INVALID_OPERATION Invalid operation * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported */ -int http_transaction_set_tcp_fastopen(http_transaction_h http_transaction, bool enable); +int http_transaction_set_tcp_fastopen(http_transaction_h http_transaction, bool enable) TIZEN_DEPRECATED_API; /** + * @deprecated Deprecated since 9.0 * @brief Gets the flag to allow TCP Fast Open. * @since_tizen 5.0 * @remarks TCP Fast Open depends on kernel version.\n @@ -781,7 +826,7 @@ int http_transaction_set_tcp_fastopen(http_transaction_h http_transaction, bool * @retval #HTTP_ERROR_INVALID_OPERATION Invalid operation * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported */ -int http_transaction_get_tcp_fastopen(http_transaction_h http_transaction, bool *enable); +int http_transaction_get_tcp_fastopen(http_transaction_h http_transaction, bool *enable) TIZEN_DEPRECATED_API; /** * @} @@ -795,6 +840,7 @@ int http_transaction_get_tcp_fastopen(http_transaction_h http_transaction, bool /** + * @deprecated Deprecated since 9.0 * @brief Adds a named field to header. * @details Adds a named field, which is a <@c fieldName, @c fieldValue> pair, to the current instance of HTTP Transaction. * @since_tizen 3.0 @@ -808,10 +854,11 @@ int http_transaction_get_tcp_fastopen(http_transaction_h http_transaction, bool * @retval #HTTP_ERROR_INVALID_OPERATION Invalid operation * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported */ -int http_transaction_header_add_field(http_transaction_h http_transaction, const char *field_name, const char* field_value); +int http_transaction_header_add_field(http_transaction_h http_transaction, const char *field_name, const char* field_value) TIZEN_DEPRECATED_API; /** + * @deprecated Deprecated since 9.0 * @brief Removes the named field from header. * @details Remove the named field, which is a <@c fieldName, @c fieldValue> pair, from the current instance of HTTP Transaction. * @since_tizen 3.0 @@ -824,10 +871,11 @@ int http_transaction_header_add_field(http_transaction_h http_transaction, const * @retval #HTTP_ERROR_INVALID_OPERATION Invalid operation * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported */ -int http_transaction_header_remove_field(http_transaction_h http_transaction, const char *field_name); +int http_transaction_header_remove_field(http_transaction_h http_transaction, const char *field_name) TIZEN_DEPRECATED_API; /** + * @deprecated Deprecated since 9.0 * @brief Gets the HTTP Header Field value from custom header. * @since_tizen 3.0 * @remarks The @a field_value should be freed using free(). @@ -841,7 +889,7 @@ int http_transaction_header_remove_field(http_transaction_h http_transaction, co * @retval #HTTP_ERROR_INVALID_OPERATION Invalid operation * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported */ -int http_transaction_header_get_field_value(http_transaction_h http_transaction, const char *field_name, char **field_value); +int http_transaction_header_get_field_value(http_transaction_h http_transaction, const char *field_name, char **field_value) TIZEN_DEPRECATED_API; /** @@ -856,6 +904,7 @@ int http_transaction_header_get_field_value(http_transaction_h http_transaction, /** + * @deprecated Deprecated since 9.0 * @brief Sets an HTTP method of the request header. * @details Sets an HTTP method such as GET, POST, PUT and etc. * @since_tizen 3.0 @@ -869,10 +918,11 @@ int http_transaction_header_get_field_value(http_transaction_h http_transaction, * @retval #HTTP_ERROR_INVALID_OPERATION Invalid operation * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported */ -int http_transaction_request_set_method(http_transaction_h http_transaction, http_method_e method); +int http_transaction_request_set_method(http_transaction_h http_transaction, http_method_e method) TIZEN_DEPRECATED_API; /** + * @deprecated Deprecated since 9.0 * @brief Gets the HTTP method from request header. * @since_tizen 3.0 * @param[in] http_transaction The HTTP transaction handle @@ -884,10 +934,11 @@ int http_transaction_request_set_method(http_transaction_h http_transaction, htt * @retval #HTTP_ERROR_INVALID_OPERATION Invalid operation * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported */ -int http_transaction_request_get_method(http_transaction_h http_transaction, http_method_e *method); +int http_transaction_request_get_method(http_transaction_h http_transaction, http_method_e *method) TIZEN_DEPRECATED_API; /** + * @deprecated Deprecated since 9.0 * @brief Sets an HTTP version of the request header. * @since_tizen 3.0 * @remarks The default version is HTTP 1.1. @@ -900,10 +951,11 @@ int http_transaction_request_get_method(http_transaction_h http_transaction, htt * @retval #HTTP_ERROR_INVALID_OPERATION Invalid operation * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported */ -int http_transaction_request_set_version(http_transaction_h http_transaction, http_version_e version); +int http_transaction_request_set_version(http_transaction_h http_transaction, http_version_e version) TIZEN_DEPRECATED_API; /** + * @deprecated Deprecated since 9.0 * @brief Gets the HTTP version from request header. * @details Gets the HTTP version. * @since_tizen 3.0 @@ -916,10 +968,11 @@ int http_transaction_request_set_version(http_transaction_h http_transaction, ht * @retval #HTTP_ERROR_INVALID_OPERATION Invalid operation * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported */ -int http_transaction_request_get_version(http_transaction_h http_transaction, http_version_e *version); +int http_transaction_request_get_version(http_transaction_h http_transaction, http_version_e *version) TIZEN_DEPRECATED_API; /** + * @deprecated Deprecated since 9.0 * @brief Sets a URI of the request header. * @details Sets a URI of the request header. * @since_tizen 3.0 @@ -933,10 +986,11 @@ int http_transaction_request_get_version(http_transaction_h http_transaction, ht * @retval #HTTP_ERROR_INVALID_OPERATION Invalid operation * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported */ -int http_transaction_request_set_uri(http_transaction_h http_transaction, const char *host_uri); +int http_transaction_request_set_uri(http_transaction_h http_transaction, const char *host_uri) TIZEN_DEPRECATED_API; /** + * @deprecated Deprecated since 9.0 * @brief Gets the URI. * @since_tizen 3.0 * @remarks The @a host_uri should be freed using free(). @@ -949,10 +1003,11 @@ int http_transaction_request_set_uri(http_transaction_h http_transaction, const * @retval #HTTP_ERROR_INVALID_OPERATION Invalid operation * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported */ -int http_transaction_request_get_uri(http_transaction_h http_transaction, char **host_uri); +int http_transaction_request_get_uri(http_transaction_h http_transaction, char **host_uri) TIZEN_DEPRECATED_API; /** + * @deprecated Deprecated since 9.0 * @brief Sets the Accept-Encoding header field of HTTP Request. * @details The Accept-Encoding header enables automatic decompression of HTTP downloads. * @since_tizen 3.0 @@ -966,10 +1021,11 @@ int http_transaction_request_get_uri(http_transaction_h http_transaction, char * * @retval #HTTP_ERROR_INVALID_OPERATION Invalid operation * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported */ -int http_transaction_request_set_accept_encoding(http_transaction_h http_transaction, const char *encoding); +int http_transaction_request_set_accept_encoding(http_transaction_h http_transaction, const char *encoding) TIZEN_DEPRECATED_API; /** + * @deprecated Deprecated since 9.0 * @brief Gets the Accept-Encoding header field of HTTP Request. * @since_tizen 3.0 * @remarks The @a encoding should be freed using free(). @@ -982,10 +1038,11 @@ int http_transaction_request_set_accept_encoding(http_transaction_h http_transac * @retval #HTTP_ERROR_INVALID_OPERATION Invalid operation * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported */ -int http_transaction_request_get_accept_encoding(http_transaction_h http_transaction, char **encoding); +int http_transaction_request_get_accept_encoding(http_transaction_h http_transaction, char **encoding) TIZEN_DEPRECATED_API; /** + * @deprecated Deprecated since 9.0 * @brief Sets a cookie in the HTTP request. * @since_tizen 3.0 * @remarks The format of string should be NME=CONTENTS (e.g. "name1=hello; name2=tizen;") @@ -998,10 +1055,11 @@ int http_transaction_request_get_accept_encoding(http_transaction_h http_transac * @retval #HTTP_ERROR_INVALID_OPERATION Invalid operation * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported */ -int http_transaction_request_set_cookie(http_transaction_h http_transaction, const char *cookie); +int http_transaction_request_set_cookie(http_transaction_h http_transaction, const char *cookie) TIZEN_DEPRECATED_API; /** + * @deprecated Deprecated since 9.0 * @brief Gets a cookie in the HTTP request. * @since_tizen 3.0 * @remarks The @a cookie should be freed using free(). @@ -1014,10 +1072,11 @@ int http_transaction_request_set_cookie(http_transaction_h http_transaction, con * @retval #HTTP_ERROR_INVALID_OPERATION Invalid operation * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported */ -int http_transaction_request_get_cookie(http_transaction_h http_transaction, char **cookie); +int http_transaction_request_get_cookie(http_transaction_h http_transaction, char **cookie) TIZEN_DEPRECATED_API; /** + * @deprecated Deprecated since 9.0 * @brief Writes the request message body. * @details This function writes the request message body in the internal queue. \n * The written queue for request body is uploaded after invoking http_transaction_submit(). @@ -1031,9 +1090,10 @@ int http_transaction_request_get_cookie(http_transaction_h http_transaction, cha * @retval #HTTP_ERROR_INVALID_OPERATION Invalid operation * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported */ -int http_transaction_request_write_body(http_transaction_h http_transaction, const char *body); +int http_transaction_request_write_body(http_transaction_h http_transaction, const char *body) TIZEN_DEPRECATED_API; /** + * @deprecated Deprecated since 9.0 * @brief Sets the file path for uploading a file. * @since_tizen 3.0 * @remarks It is used with #HTTP_METHOD_PUT. \n @@ -1049,7 +1109,7 @@ int http_transaction_request_write_body(http_transaction_h http_transaction, con * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported * @retval #HTTP_ERROR_PERMISSION_DENIED Permission denied */ -int http_transaction_request_set_upload_file(http_transaction_h http_transaction, const char *file_path); +int http_transaction_request_set_upload_file(http_transaction_h http_transaction, const char *file_path) TIZEN_DEPRECATED_API; /** * @} @@ -1063,6 +1123,7 @@ int http_transaction_request_set_upload_file(http_transaction_h http_transaction /** + * @deprecated Deprecated since 9.0 * @brief Gets the HTTP status code from HTTP Response. * @since_tizen 3.0 * @param[in] http_transaction The HTTP transaction handle @@ -1074,10 +1135,11 @@ int http_transaction_request_set_upload_file(http_transaction_h http_transaction * @retval #HTTP_ERROR_INVALID_OPERATION Invalid operation * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported */ -int http_transaction_response_get_status_code(http_transaction_h http_transaction, http_status_code_e *status_code); +int http_transaction_response_get_status_code(http_transaction_h http_transaction, http_status_code_e *status_code) TIZEN_DEPRECATED_API; /** + * @deprecated Deprecated since 9.0 * @brief Gets the HTTP status text from HTTP Response. * @since_tizen 3.0 * @remarks The @a status_text should be freed using free(). @@ -1090,10 +1152,11 @@ int http_transaction_response_get_status_code(http_transaction_h http_transactio * @retval #HTTP_ERROR_INVALID_OPERATION Invalid operation * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported */ -int http_transaction_response_get_status_text(http_transaction_h http_transaction, char **status_text); +int http_transaction_response_get_status_text(http_transaction_h http_transaction, char **status_text) TIZEN_DEPRECATED_API; /** + * @deprecated Deprecated since 9.0 * @brief Gets the HTTP version from HTTP Response. * @since_tizen 3.0 * @param[in] http_transaction The HTTP transaction handle @@ -1105,7 +1168,7 @@ int http_transaction_response_get_status_text(http_transaction_h http_transactio * @retval #HTTP_ERROR_INVALID_OPERATION Invalid operation * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported */ -int http_transaction_response_get_version(http_transaction_h http_transaction, http_version_e *version); +int http_transaction_response_get_version(http_transaction_h http_transaction, http_version_e *version) TIZEN_DEPRECATED_API; /** @@ -1120,6 +1183,7 @@ int http_transaction_response_get_version(http_transaction_h http_transaction, h /** + * @deprecated Deprecated since 9.0 * @brief Opens HTTP transaction with authentication information. * @since_tizen 3.0 * @remarks The @a http_auth_transaction should be released using http_transaction_destroy(). @@ -1133,10 +1197,11 @@ int http_transaction_response_get_version(http_transaction_h http_transaction, h * @retval #HTTP_ERROR_OUT_OF_MEMORY Out of memory * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported */ -int http_transaction_open_authentication(http_transaction_h http_transaction, http_transaction_h *http_auth_transaction); +int http_transaction_open_authentication(http_transaction_h http_transaction, http_transaction_h *http_auth_transaction) TIZEN_DEPRECATED_API; /** + * @deprecated Deprecated since 9.0 * @brief Sets an HTTP credentials. * @details Sets an HTTP authentication scheme such as username and password. * @since_tizen 3.0 @@ -1149,10 +1214,11 @@ int http_transaction_open_authentication(http_transaction_h http_transaction, ht * @retval #HTTP_ERROR_INVALID_PARAMETER Invalid parameter * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported */ -int http_transaction_set_credentials(http_transaction_h http_transaction, const char *user_name, const char *password); +int http_transaction_set_credentials(http_transaction_h http_transaction, const char *user_name, const char *password) TIZEN_DEPRECATED_API; /** + * @deprecated Deprecated since 9.0 * @brief Gets the username & password for the HTTP credential. * @since_tizen 3.0 * @remarks The @a user_name & @a password should be freed using free(). @@ -1167,10 +1233,11 @@ int http_transaction_set_credentials(http_transaction_h http_transaction, const * @retval #HTTP_ERROR_OUT_OF_MEMORY Out of memory * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported */ -int http_transaction_get_credentials(http_transaction_h http_transaction, char **user_name, char **password); +int http_transaction_get_credentials(http_transaction_h http_transaction, char **user_name, char **password) TIZEN_DEPRECATED_API; /** + * @deprecated Deprecated since 9.0 * @brief Sets an HTTP authentication scheme. * @details Set an HTTP authentication scheme such as BASIC, MD5, NTLM and etc. * @since_tizen 3.0 @@ -1182,10 +1249,11 @@ int http_transaction_get_credentials(http_transaction_h http_transaction, char * * @retval #HTTP_ERROR_INVALID_PARAMETER Invalid parameter * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported */ -int http_transaction_set_http_auth_scheme(http_transaction_h http_transaction, http_auth_scheme_e auth_scheme); +int http_transaction_set_http_auth_scheme(http_transaction_h http_transaction, http_auth_scheme_e auth_scheme) TIZEN_DEPRECATED_API; /** + * @deprecated Deprecated since 9.0 * @brief Gets the HTTP authentication scheme. * @since_tizen 3.0 * @param[in] http_transaction The HTTP transaction handle @@ -1197,10 +1265,11 @@ int http_transaction_set_http_auth_scheme(http_transaction_h http_transaction, h * @retval #HTTP_ERROR_INVALID_OPERATION Invalid operation * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported */ -int http_transaction_get_http_auth_scheme(http_transaction_h http_transaction, http_auth_scheme_e *auth_scheme); +int http_transaction_get_http_auth_scheme(http_transaction_h http_transaction, http_auth_scheme_e *auth_scheme) TIZEN_DEPRECATED_API; /** + * @deprecated Deprecated since 9.0 * @brief Gets the HTTP authentication realm. * @since_tizen 3.0 * @remarks The @a realm should be freed using free(). @@ -1214,7 +1283,7 @@ int http_transaction_get_http_auth_scheme(http_transaction_h http_transaction, h * @retval #HTTP_ERROR_OUT_OF_MEMORY Out of memory * @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported */ -int http_transaction_get_realm(http_transaction_h http_transaction, char **realm); +int http_transaction_get_realm(http_transaction_h http_transaction, char **realm) TIZEN_DEPRECATED_API; /** diff --git a/src/http_common.c b/src/http_common.c index cff8e73..c2204cf 100644 --- a/src/http_common.c +++ b/src/http_common.c @@ -314,6 +314,7 @@ CATCH: API int http_init(void) { + WARN("DEPRECATION WARNING: http_init() is deprecated and will be removed from next release."); _retvm_if(_http_is_init(), HTTP_ERROR_INVALID_OPERATION, "http is already initialized!!"); @@ -328,6 +329,7 @@ API int http_init(void) API int http_deinit(void) { + WARN("DEPRECATION WARNING: http_deinit() is deprecated and will be removed from next release."); _retvm_if(_http_is_init() == false, HTTP_ERROR_INVALID_OPERATION, "http is already deinitialized!!"); diff --git a/src/http_session.c b/src/http_session.c index 1a25abd..25fae62 100644 --- a/src/http_session.c +++ b/src/http_session.c @@ -197,6 +197,7 @@ int _generate_session_id(void) API int http_session_create(http_session_mode_e mode, http_session_h *http_session) { + WARN("DEPRECATION WARNING: http_session_create() is deprecated and will be removed from next release."); _retvm_if(_http_is_init() == false, HTTP_ERROR_INVALID_OPERATION, "http isn't initialized"); _retvm_if(http_session == NULL, HTTP_ERROR_INVALID_PARAMETER, @@ -226,6 +227,7 @@ API int http_session_create(http_session_mode_e mode, http_session_h *http_sessi API int http_session_destroy(http_session_h http_session) { + WARN("DEPRECATION WARNING: http_session_destroy() is deprecated and will be removed from next release."); _retvm_if(_http_is_init() == false, HTTP_ERROR_INVALID_OPERATION, "http isn't initialized"); _retvm_if(http_session == NULL, HTTP_ERROR_INVALID_PARAMETER, @@ -255,6 +257,7 @@ API int http_session_destroy(http_session_h http_session) API int http_session_set_auto_redirection(http_session_h http_session, bool auto_redirection) { + WARN("DEPRECATION WARNING: http_session_set_auto_redirection() is deprecated and will be removed from next release."); _retvm_if(_http_is_init() == false, HTTP_ERROR_INVALID_OPERATION, "http isn't initialized"); _retvm_if(http_session == NULL, HTTP_ERROR_INVALID_PARAMETER, @@ -269,6 +272,7 @@ API int http_session_set_auto_redirection(http_session_h http_session, bool auto API int http_session_get_auto_redirection(http_session_h http_session, bool *auto_redirect) { + WARN("DEPRECATION WARNING: http_session_get_auto_redirection() is deprecated and will be removed from next release."); _retvm_if(_http_is_init() == false, HTTP_ERROR_INVALID_OPERATION, "http isn't initialized"); _retvm_if(http_session == NULL, HTTP_ERROR_INVALID_PARAMETER, "parameter(http_session) is NULL\n"); _retvm_if(auto_redirect == NULL, HTTP_ERROR_INVALID_PARAMETER, "parameter(auto_redirect) is NULL\n"); @@ -282,6 +286,7 @@ API int http_session_get_auto_redirection(http_session_h http_session, bool *aut API int http_session_get_active_transaction_count(http_session_h http_session, int *active_transaction_count) { + WARN("DEPRECATION WARNING: http_session_get_active_transaction_count() is deprecated and will be removed from next release."); _retvm_if(_http_is_init() == false, HTTP_ERROR_INVALID_OPERATION, "http isn't initialized"); _retvm_if(http_session == NULL, HTTP_ERROR_INVALID_PARAMETER, @@ -298,6 +303,7 @@ API int http_session_get_active_transaction_count(http_session_h http_session, i API int http_session_get_max_transaction_count(http_session_h http_session, int *transaction_count) { + WARN("DEPRECATION WARNING: http_session_get_max_transaction_count() is deprecated and will be removed from next release."); _retvm_if(_http_is_init() == false, HTTP_ERROR_INVALID_OPERATION, "http isn't initialized"); _retvm_if(http_session == NULL, HTTP_ERROR_INVALID_PARAMETER, @@ -319,6 +325,7 @@ API int http_session_get_max_transaction_count(http_session_h http_session, int API int http_session_destroy_all_transactions(http_session_h http_session) { + WARN("DEPRECATION WARNING: http_session_destroy_all_transactions() is deprecated and will be removed from next release."); _retvm_if(_http_is_init() == false, HTTP_ERROR_INVALID_OPERATION, "http isn't initialized"); _retvm_if(http_session == NULL, HTTP_ERROR_INVALID_PARAMETER, diff --git a/src/http_transaction.c b/src/http_transaction.c index ae78051..20e240b 100644 --- a/src/http_transaction.c +++ b/src/http_transaction.c @@ -497,6 +497,7 @@ int _transaction_submit(gpointer user_data) API int http_session_open_transaction(http_session_h http_session, http_method_e method, http_transaction_h *http_transaction) { + WARN("DEPRECATION WARNING: http_session_open_transaction() is deprecated and will be removed from next release."); _retvm_if(_http_is_init() == false, HTTP_ERROR_INVALID_OPERATION, "http isn't initialized"); _retvm_if(http_session == NULL, HTTP_ERROR_INVALID_PARAMETER, "parameter(http_session) is NULL\n"); @@ -603,6 +604,7 @@ API int http_session_open_transaction(http_session_h http_session, http_method_e API int http_transaction_submit(http_transaction_h http_transaction) { + WARN("DEPRECATION WARNING: http_transaction_submit() is deprecated and will be removed from next release."); _retvm_if(_http_check_permission(HTTP_PRIVILEGE_INTERNET) == false, HTTP_ERROR_PERMISSION_DENIED, "Permission denied"); _retvm_if(_http_check_permission(HTTP_PRIVILEGE_NETWORK_GET) == false, @@ -626,6 +628,7 @@ API int http_transaction_submit(http_transaction_h http_transaction) API int http_transaction_destroy(http_transaction_h http_transaction) { + WARN("DEPRECATION WARNING: http_transaction_destroy() is deprecated and will be removed from next release."); _retvm_if(_http_is_init() == false, HTTP_ERROR_INVALID_OPERATION, "http isn't initialized"); _retvm_if(http_transaction == NULL, HTTP_ERROR_INVALID_PARAMETER, @@ -788,6 +791,7 @@ API int http_transaction_destroy(http_transaction_h http_transaction) //LCOV_EXCL_START API int http_transaction_pause(http_transaction_h http_transaction, http_pause_type_e pause_type) { + WARN("DEPRECATION WARNING: http_transaction_pause() is deprecated and will be removed from next release."); _retvm_if(_http_is_init() == false, HTTP_ERROR_INVALID_OPERATION, "http isn't initialized"); _retvm_if(http_transaction == NULL, HTTP_ERROR_INVALID_PARAMETER, @@ -809,6 +813,7 @@ API int http_transaction_pause(http_transaction_h http_transaction, http_pause_t API int http_transaction_resume(http_transaction_h http_transaction) { + WARN("DEPRECATION WARNING: http_transaction_resume() is deprecated and will be removed from next release."); _retvm_if(_http_is_init() == false, HTTP_ERROR_INVALID_OPERATION, "http isn't initialized"); _retvm_if(http_transaction == NULL, HTTP_ERROR_INVALID_PARAMETER, @@ -829,6 +834,7 @@ API int http_transaction_resume(http_transaction_h http_transaction) API int http_transaction_cancel(http_transaction_h http_transaction) { + WARN("DEPRECATION WARNING: http_transaction_cancel() is deprecated and will be removed from next release."); _retvm_if(_http_is_init() == false, HTTP_ERROR_INVALID_OPERATION, "http isn't initialized"); _retvm_if(http_transaction == NULL, HTTP_ERROR_INVALID_PARAMETER, @@ -843,6 +849,7 @@ API int http_transaction_cancel(http_transaction_h http_transaction) API int http_transaction_set_progress_cb(http_transaction_h http_transaction, http_transaction_progress_cb progress_cb, void* user_data) { + WARN("DEPRECATION WARNING: http_transaction_set_progress_cb() is deprecated and will be removed from next release."); _retvm_if(_http_is_init() == false, HTTP_ERROR_INVALID_OPERATION, "http isn't initialized"); _retvm_if(http_transaction == NULL, HTTP_ERROR_INVALID_PARAMETER, @@ -860,6 +867,7 @@ API int http_transaction_set_progress_cb(http_transaction_h http_transaction, ht API int http_transaction_set_received_header_cb(http_transaction_h http_transaction, http_transaction_header_cb header_cb, void* user_data) { + WARN("DEPRECATION WARNING: http_transaction_set_received_header_cb() is deprecated and will be removed from next release."); _retvm_if(_http_is_init() == false, HTTP_ERROR_INVALID_OPERATION, "http isn't initialized"); _retvm_if(http_transaction == NULL, HTTP_ERROR_INVALID_PARAMETER, @@ -877,6 +885,7 @@ API int http_transaction_set_received_header_cb(http_transaction_h http_transact API int http_transaction_set_received_body_cb(http_transaction_h http_transaction, http_transaction_body_cb body_cb, void* user_data) { + WARN("DEPRECATION WARNING: http_transaction_set_received_body_cb() is deprecated and will be removed from next release."); _retvm_if(_http_is_init() == false, HTTP_ERROR_INVALID_OPERATION, "http isn't initialized"); _retvm_if(http_transaction == NULL, HTTP_ERROR_INVALID_PARAMETER, @@ -894,6 +903,7 @@ API int http_transaction_set_received_body_cb(http_transaction_h http_transactio API int http_transaction_set_uploaded_cb(http_transaction_h http_transaction, http_transaction_write_cb write_cb, void* user_data) { + WARN("DEPRECATION WARNING: http_transaction_set_uploaded_cb() is deprecated and will be removed from next release."); _retvm_if(_http_is_init() == false, HTTP_ERROR_INVALID_OPERATION, "http isn't initialized"); _retvm_if(http_transaction == NULL, HTTP_ERROR_INVALID_PARAMETER, @@ -911,6 +921,7 @@ API int http_transaction_set_uploaded_cb(http_transaction_h http_transaction, ht API int http_transaction_set_completed_cb(http_transaction_h http_transaction, http_transaction_completed_cb completed_cb, void* user_data) { + WARN("DEPRECATION WARNING: http_transaction_set_completed_cb() is deprecated and will be removed from next release."); _retvm_if(_http_is_init() == false, HTTP_ERROR_INVALID_OPERATION, "http isn't initialized"); _retvm_if(http_transaction == NULL, HTTP_ERROR_INVALID_PARAMETER, @@ -928,6 +939,7 @@ API int http_transaction_set_completed_cb(http_transaction_h http_transaction, h API int http_transaction_set_aborted_cb(http_transaction_h http_transaction, http_transaction_aborted_cb aborted_cb, void* user_data) { + WARN("DEPRECATION WARNING: http_transaction_set_aborted_cb() is deprecated and will be removed from next release."); _retvm_if(_http_is_init() == false, HTTP_ERROR_INVALID_OPERATION, "http isn't initialized"); _retvm_if(http_transaction == NULL, HTTP_ERROR_INVALID_PARAMETER, @@ -945,6 +957,7 @@ API int http_transaction_set_aborted_cb(http_transaction_h http_transaction, htt API int http_transaction_set_timeout(http_transaction_h http_transaction, int timeout) { + WARN("DEPRECATION WARNING: http_transaction_set_timeout() is deprecated and will be removed from next release."); _retvm_if(_http_is_init() == false, HTTP_ERROR_INVALID_OPERATION, "http isn't initialized"); _retvm_if(http_transaction == NULL, HTTP_ERROR_INVALID_PARAMETER, @@ -961,6 +974,7 @@ API int http_transaction_set_timeout(http_transaction_h http_transaction, int ti API int http_transaction_get_timeout(http_transaction_h http_transaction, int *timeout) { + WARN("DEPRECATION WARNING: http_transaction_get_timeout() is deprecated and will be removed from next release."); _retvm_if(_http_is_init() == false, HTTP_ERROR_INVALID_OPERATION, "http isn't initialized"); _retvm_if(http_transaction == NULL, HTTP_ERROR_INVALID_PARAMETER, @@ -977,6 +991,7 @@ API int http_transaction_get_timeout(http_transaction_h http_transaction, int *t API int http_transaction_set_interface_name(http_transaction_h http_transaction, const char *interface_name) { + WARN("DEPRECATION WARNING: http_transaction_set_interface_name() is deprecated and will be removed from next release."); _retvm_if(_http_is_init() == false, HTTP_ERROR_INVALID_OPERATION, "http isn't initialized"); _retvm_if(http_transaction == NULL, HTTP_ERROR_INVALID_PARAMETER, @@ -993,6 +1008,7 @@ API int http_transaction_set_interface_name(http_transaction_h http_transaction, API int http_transaction_get_interface_name(http_transaction_h http_transaction, char **interface_name) { + WARN("DEPRECATION WARNING: http_transaction_get_interface_name() is deprecated and will be removed from next release."); _retvm_if(_http_is_init() == false, HTTP_ERROR_INVALID_OPERATION, "http isn't initialized"); _retvm_if(http_transaction == NULL, HTTP_ERROR_INVALID_PARAMETER, @@ -1013,6 +1029,7 @@ API int http_transaction_get_interface_name(http_transaction_h http_transaction, API int http_transaction_set_ready_to_write(http_transaction_h http_transaction, bool read_to_write) { + WARN("DEPRECATION WARNING: http_transaction_set_ready_to_write() is deprecated and will be removed from next release."); _retvm_if(_http_is_init() == false, HTTP_ERROR_INVALID_OPERATION, "http isn't initialized"); _retvm_if(http_transaction == NULL, HTTP_ERROR_INVALID_PARAMETER, @@ -1027,6 +1044,7 @@ API int http_transaction_set_ready_to_write(http_transaction_h http_transaction, API int http_transaction_get_server_certificate_verification(http_transaction_h http_transaction, bool* verify) { + WARN("DEPRECATION WARNING: http_transaction_get_server_certificate_verification() is deprecated and will be removed from next release."); _retvm_if(_http_is_init() == false, HTTP_ERROR_INVALID_OPERATION, "http isn't initialized"); _retvm_if(http_transaction == NULL, HTTP_ERROR_INVALID_PARAMETER, @@ -1043,6 +1061,7 @@ API int http_transaction_get_server_certificate_verification(http_transaction_h API int http_transaction_set_server_certificate_verification(http_transaction_h http_transaction, bool verify) { + WARN("DEPRECATION WARNING: http_transaction_set_server_certificate_verification() is deprecated and will be removed from next release."); _retvm_if(_http_is_init() == false, HTTP_ERROR_INVALID_OPERATION, "http isn't initialized"); _retvm_if(http_transaction == NULL, HTTP_ERROR_INVALID_PARAMETER, @@ -1057,6 +1076,7 @@ API int http_transaction_set_server_certificate_verification(http_transaction_h API int http_transaction_get_tcp_fastopen(http_transaction_h http_transaction, bool *enable) { + WARN("DEPRECATION WARNING: http_transaction_get_tcp_fastopen() is deprecated and will be removed from next release."); _retvm_if(_http_is_init() == false, HTTP_ERROR_INVALID_OPERATION, "http isn't initialized"); _retvm_if(http_transaction == NULL, HTTP_ERROR_INVALID_PARAMETER, @@ -1075,6 +1095,7 @@ API int http_transaction_get_tcp_fastopen(http_transaction_h http_transaction, b API int http_transaction_set_tcp_fastopen(http_transaction_h http_transaction, bool enable) { + WARN("DEPRECATION WARNING: http_transaction_set_tcp_fastopen() is deprecated and will be removed from next release."); _retvm_if(_http_is_init() == false, HTTP_ERROR_INVALID_OPERATION, "http isn't initialized"); _retvm_if(http_transaction == NULL, HTTP_ERROR_INVALID_PARAMETER, @@ -1092,6 +1113,7 @@ API int http_transaction_set_tcp_fastopen(http_transaction_h http_transaction, b //LCOV_EXCL_START API int http_transaction_set_http_auth_scheme(http_transaction_h http_transaction, http_auth_scheme_e auth_scheme) { + WARN("DEPRECATION WARNING: http_transaction_set_http_auth_scheme() is deprecated and will be removed from next release."); _retvm_if(http_transaction == NULL, HTTP_ERROR_INVALID_PARAMETER, "parameter(http_transaction) is NULL\n"); @@ -1104,6 +1126,7 @@ API int http_transaction_set_http_auth_scheme(http_transaction_h http_transactio API int http_transaction_get_http_auth_scheme(http_transaction_h http_transaction, http_auth_scheme_e *auth_scheme) { + WARN("DEPRECATION WARNING: http_transaction_get_http_auth_scheme() is deprecated and will be removed from next release."); _retvm_if(http_transaction == NULL, HTTP_ERROR_INVALID_PARAMETER, "parameter(http_transaction) is NULL\n"); _retvm_if(auth_scheme == NULL, HTTP_ERROR_INVALID_PARAMETER, @@ -1118,6 +1141,7 @@ API int http_transaction_get_http_auth_scheme(http_transaction_h http_transactio API int http_transaction_get_realm(http_transaction_h http_transaction, char **realm) { + WARN("DEPRECATION WARNING: http_transaction_get_realm() is deprecated and will be removed from next release."); _retvm_if(http_transaction == NULL, HTTP_ERROR_INVALID_PARAMETER, "parameter(http_transaction) is NULL\n"); _retvm_if(realm == NULL, HTTP_ERROR_INVALID_PARAMETER, @@ -1139,6 +1163,7 @@ API int http_transaction_get_realm(http_transaction_h http_transaction, char **r API int http_transaction_set_credentials(http_transaction_h http_transaction, const char *user_name, const char *password) { + WARN("DEPRECATION WARNING: http_transaction_set_credentials() is deprecated and will be removed from next release."); _retvm_if(http_transaction == NULL, HTTP_ERROR_INVALID_PARAMETER, "parameter(http_transaction) is NULL\n"); _retvm_if(user_name == NULL, HTTP_ERROR_INVALID_PARAMETER, @@ -1156,6 +1181,7 @@ API int http_transaction_set_credentials(http_transaction_h http_transaction, co API int http_transaction_get_credentials(http_transaction_h http_transaction, char **user_name, char **password) { + WARN("DEPRECATION WARNING: http_transaction_get_credentials() is deprecated and will be removed from next release."); _retvm_if(http_transaction == NULL, HTTP_ERROR_INVALID_PARAMETER, "parameter(http_transaction) is NULL\n"); _retvm_if(user_name == NULL, HTTP_ERROR_INVALID_PARAMETER, @@ -1183,6 +1209,7 @@ API int http_transaction_get_credentials(http_transaction_h http_transaction, ch API int http_transaction_open_authentication(http_transaction_h http_transaction, http_transaction_h *http_auth_transaction) { + WARN("DEPRECATION WARNING: http_transaction_open_authentication() is deprecated and will be removed from next release."); _retvm_if(http_transaction == NULL, HTTP_ERROR_INVALID_PARAMETER, "parameter(http_transaction) is NULL\n"); |