1# Network Management Subsystem Changelog
2
3## request2 API Name Change
4
5Changed the name of the HTTP streaming request from **request2** to **requestInStream**. The original name **request2** does not clearly express the intent of the API and may cause ambiguity, which does not comply with the OpenHarmony API specifications.
6
7  -
8
9## dataProgress Event Name Change
10
11Changed the name of the streaming data receiving event from **dataProgress** to **dataReceiveProgress**. The original name **dataProgress** does not clearly express the meaning of the event, which does not comply with the OpenHarmony API specifications.
12
13  -
14
15**Change Impact**
16
17For applications developed based on earlier versions, the corresponding API and event names must be updated. Otherwise, API calls may fail, affecting the service logic.
18
19**Key API/Component Changes**
20
21Involved APIs:
22
23  - request2;
24  - on(type: "dataProgress", callback: Callback<{ receiveSize: number, totalSize: number }>): void;
25  - off(type: "dataProgress", callback: Callback<{ receiveSize: number, totalSize: number }>): void;
26
27Before change:
28  - request2(url: string, callback: AsyncCallback<number>): void;
29  - request2(url: string, options: HttpRequestOptions, callback: AsyncCallback<number>): void;
30  - request2(url: string, options?: HttpRequestOptions): Promise<number>;
31  - on(type: "dataProgress", callback: Callback<{ receiveSize: number, totalSize: number }>): void;
32  - off(type: 'dataProgress', callback?: Callback<{ receiveSize: number, totalSize: number }>): void;
33
34After change:
35  - requestInStream(url: string, callback: AsyncCallback<number>): void;
36  - requestInStream(url: string, options: HttpRequestOptions, callback: AsyncCallback<number>): void;
37  - requestInStream(url: string, options?: HttpRequestOptions): Promise<number>;
38  - on(type: "dataReceiveProgress", callback: Callback<{ receiveSize: number, totalSize: number }>): void;
39  - off(type: 'dataReceiveProgress', callback?: Callback<{ receiveSize: number, totalSize: number }>): void;
40
41**Adaptation Guide**
42
43Replace the API name **request2** and event name **dataProgress** in the original service code with **requestInStream** and **dataReceiveProgress**, respectively.
44