/**
+ * @deprecated Deprecated since 9.0
* @brief The HTTP Session handle.
* @since_tizen 3.0
*/
/**
+ * @deprecated Deprecated since 9.0
* @brief The HTTP Transaction handle.
* @since_tizen 3.0
*/
/**
+ * @deprecated Deprecated since 9.0
* @brief Enumeration for the HTTP session.
* @since_tizen 3.0
*/
/**
+ * @deprecated Deprecated since 9.0
* @brief Enumeration for the HTTP method.
* @since_tizen 3.0
*/
/**
+ * @deprecated Deprecated since 9.0
* @brief Enumeration for the HTTP version.
* @since_tizen 3.0
*/
/**
+ * @deprecated Deprecated since 9.0
* @brief Enumeration for transfer pause state.
* @since_tizen 3.0
*/
/**
+ * @deprecated Deprecated since 9.0
* @brief Enumeration for the HTTP error code.
* @since_tizen 3.0
*/
/**
+ * @deprecated Deprecated since 9.0
* @brief Enumeration for the HTTP status code.
* @since_tizen 3.0
*/
/**
+ * @deprecated Deprecated since 9.0
* @brief Enumeration for the HTTP authentication schemes.
* @since_tizen 3.0
*/
/**
+ * @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
/**
+ * @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
/**
+ * @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
/**
+ * @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
/**
+ * @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
/**
+ * @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
/**
+ * @deprecated Deprecated since 9.0
* @brief Initializes the HTTP module.
* @since_tizen 3.0
* @return @c 0 on success,
* @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,
* @retval #HTTP_ERROR_NOT_SUPPORTED Not Supported
* @see http_init()
*/
-int http_deinit(void);
+int http_deinit(void) TIZEN_DEPRECATED_API;
/**
/**
+ * @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().
* @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
* @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().
* @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
* @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
* @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
* @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
* @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
* @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;
/**
/**
+ * @deprecated Deprecated since 9.0
* @brief Submits the HTTP request.
* @since_tizen 3.0
* @privlevel public
* @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.
* @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
* @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
* @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
* @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
* @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
* @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
* @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.
* @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
* @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
* @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
* @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.
* @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
* @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
* @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().
* @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
* @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
* @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
* @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
* @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;
/**
* @}
/**
+ * @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
* @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
* @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().
* @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;
/**
/**
+ * @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
* @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
* @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.
* @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
* @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
* @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().
* @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
* @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().
* @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;")
* @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().
* @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().
* @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
* @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;
/**
* @}
/**
+ * @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
* @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().
* @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
* @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;
/**
/**
+ * @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().
* @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
* @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().
* @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
* @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
* @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().
* @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;
/**
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");
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,
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,
//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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
//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");
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,
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,
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,
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,
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");