diff --git a/en/application-dev/connectivity/http-request.md b/en/application-dev/connectivity/http-request.md index edad275307b9fa79c864eee49f723c3cdff84739..0a69a2e0f79a874def98d2be58d26d6dec0c3874 100644 --- a/en/application-dev/connectivity/http-request.md +++ b/en/application-dev/connectivity/http-request.md @@ -12,20 +12,20 @@ To use related APIs, you must declare the **ohos.permission.INTERNET** permissio The following table describes the related APIs. -| API | Description | -| ----------------------------------------- | ----------------------------------- | -| createHttp() | Creates an HTTP request. | -| request() | Initiates an HTTP request to a given URL. | -| destroy() | Destroys an HTTP request. | +| API | Description | +| ----------------------------------------- | --------------------------------------------------------- | +| createHttp() | Creates an HTTP request. | +| request() | Initiates an HTTP request to a given URL. | +| destroy() | Destroys an HTTP request. | | on(type: 'headersReceive') | Registers an observer for HTTP Response Header events. | -| off(type: 'headersReceive') | Unregisters the observer for HTTP Response Header events.| +| off(type: 'headersReceive') | Unregisters the observer for HTTP Response Header events. | ## How to Develop 1. Import the required HTTP module. 2. Create an **HttpRequest** object. 3. (Optional) Listen for HTTP Response Header events. -4. Initiates an HTTP request to a given URL. +4. Initiate an HTTP request to a given URL. 5. (Optional) Process the HTTP Response Header event and the return result of the HTTP request. ```js