1# request Switching
2
3
4  | API in the FA Model| Corresponding .d.ts File in the Stage Model| Corresponding API in the Stage Model|
5| -------- | -------- | -------- |
6| [download(config: DownloadConfig, callback: AsyncCallback&lt;DownloadTask&gt;): void;](../reference/apis-basic-services-kit/js-apis-request.md#requestdownloaddeprecated-1)<br>[download(config: DownloadConfig): Promise&lt;DownloadTask&gt;;](../reference/apis-basic-services-kit/js-apis-request.md#requestdownloaddeprecated) | \@ohos.request.d.ts | [downloadFile(context: BaseContext, config: DownloadConfig, callback: AsyncCallback&lt;DownloadTask&gt;): void;](../reference/apis-basic-services-kit/js-apis-request.md#requestdownloadfile9-1)<br>[downloadFile(context: BaseContext, config: DownloadConfig): Promise&lt;DownloadTask&gt;;](../reference/apis-basic-services-kit/js-apis-request.md#requestdownloadfile9) |
7| [upload(config: UploadConfig, callback: AsyncCallback&lt;UploadTask&gt;): void;](../reference/apis-basic-services-kit/js-apis-request.md#requestuploaddeprecated-1)<br>[upload(config: UploadConfig): Promise&lt;UploadTask&gt;;](../reference/apis-basic-services-kit/js-apis-request.md#requestuploaddeprecated) | \@ohos.request.d.ts | [uploadFile(context: BaseContext, config: UploadConfig, callback: AsyncCallback&lt;UploadTask&gt;): void;](../reference/apis-basic-services-kit/js-apis-request.md#requestuploadfile9-1)<br>[uploadFile(context: BaseContext, config: UploadConfig): Promise&lt;UploadTask&gt;;](../reference/apis-basic-services-kit/js-apis-request.md#requestuploadfile9) |
8