@@ -37,33 +37,6 @@ namespace http {
3737 */
3838class CORE_API NetworkSettings final {
3939 public:
40- /* *
41- * @brief Gets the maximum number of retries for the HTTP request.
42- *
43- * @return The maximum number of retries for the HTTP request.
44- */
45- OLP_SDK_DEPRECATED (" Will be removed by 04.2024" )
46- std::size_t GetRetries () const ;
47-
48- /* *
49- * @brief Sets the maximum number of retries for the HTTP request.
50- *
51- * @param[in] retries The maximum number of retries for HTTP request.
52- *
53- * @return A reference to *this.
54- */
55- OLP_SDK_DEPRECATED (" Will be removed by 04.2024" )
56- NetworkSettings& WithRetries (std::size_t retries);
57-
58- /* *
59- * @brief Gets the connection timeout in seconds.
60- *
61- * @return The connection timeout in seconds.
62- */
63- OLP_SDK_DEPRECATED (
64- " Will be removed by 04.2024, use GetConnectionTimeoutDuration() instead" )
65- int GetConnectionTimeout () const ;
66-
6740 /* *
6841 * @brief Gets the connection timeout.
6942 *
@@ -80,18 +53,6 @@ class CORE_API NetworkSettings final {
8053 std::chrono::milliseconds GetBackgroundConnectionTimeoutDuration () const ;
8154#endif // OLP_SDK_NETWORK_IOS_BACKGROUND_DOWNLOAD
8255
83- /* *
84- * @brief Sets the connection timeout in seconds.
85- *
86- * @param[in] timeout The connection timeout in seconds.
87- *
88- * @return A reference to *this.
89- */
90- OLP_SDK_DEPRECATED (
91- " Will be removed by 04.2024, use "
92- " WithConnectionTimeout(std::chrono::milliseconds) instead" )
93- NetworkSettings& WithConnectionTimeout (int timeout);
94-
9556 /* *
9657 * @brief Sets the connection timeout.
9758 *
@@ -113,34 +74,13 @@ class CORE_API NetworkSettings final {
11374 std::chrono::milliseconds timeout);
11475#endif // OLP_SDK_NETWORK_IOS_BACKGROUND_DOWNLOAD
11576
116- /* *
117- * @brief Gets the transfer timeout in seconds.
118- *
119- * @return The transfer timeout in seconds.
120- */
121- OLP_SDK_DEPRECATED (
122- " Will be removed by 04.2024, use GetTransferTimeoutDuration() instead" )
123- int GetTransferTimeout () const ;
124-
12577 /* *
12678 * @brief Gets the transfer timeout.
12779 *
12880 * @return The transfer timeout.
12981 */
13082 std::chrono::milliseconds GetTransferTimeoutDuration () const ;
13183
132- /* *
133- * @brief Sets the transfer timeout in seconds.
134- *
135- * @param[in] timeout The transfer timeout in seconds.
136- *
137- * @return A reference to *this.
138- */
139- OLP_SDK_DEPRECATED (
140- " Will be removed by 04.2024, use "
141- " WithTransferTimeout(std::chrono::milliseconds) instead" )
142- NetworkSettings& WithTransferTimeout (int timeout);
143-
14484 /* *
14585 * @brief Gets max lifetime (since creation) allowed for reusing a connection.
14686 *
@@ -203,8 +143,6 @@ class CORE_API NetworkSettings final {
203143 NetworkSettings& WithDNSServers (std::vector<std::string> dns_servers);
204144
205145 private:
206- // / The maximum number of retries for the HTTP request.
207- std::size_t retries_{3 };
208146 // / The connection timeout.
209147 std::chrono::milliseconds connection_timeout_ = std::chrono::seconds(60 );
210148#ifdef OLP_SDK_NETWORK_IOS_BACKGROUND_DOWNLOAD
0 commit comments