# ANNetwork **Repository Path**: mrxir/ANNetwork ## Basic Information - **Project Name**: ANNetwork - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-09-11 - **Last Updated**: 2025-09-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ANNetwork [![CI Status](https://img.shields.io/travis/l.j./ANNetwork.svg?style=flat)](https://travis-ci.org/l.j./ANNetwork) [![Version](https://img.shields.io/cocoapods/v/ANNetwork.svg?style=flat)](https://cocoapods.org/pods/ANNetwork) [![License](https://img.shields.io/cocoapods/l/ANNetwork.svg?style=flat)](https://cocoapods.org/pods/ANNetwork) [![Platform](https://img.shields.io/cocoapods/p/ANNetwork.svg?style=flat)](https://cocoapods.org/pods/ANNetwork) ## Example To run the example project, clone the repo, and run `pod install` from the Example directory first. ## Update ### 0.1.1 ### 0.1.2 - fix 下载请求会同时发起两个请求的 bug - 下载启用断点 - 更改 url 的拼接 #### url 的拼接 使用 `[NSURL URLWithString:relativeToURL]` 方法进行拼接,以提升可靠性和兼容性。 这一实现可能导致和之前不同的 URL 拼接结果。当 `requestUrl` 带有 `/` 前缀,同时 `baseUrl` 包含除 Host 之外的内容, `requestUrl` 仍然会被拼接到最顶级,这一差距来源于 `NSURL` 本身的实现: ```objectivec NSURL *baseURL = [NSURL URLWithString:@"http://example.com/v1/"]; NSURL *resultURL = [NSURL URLWithString:@"/foo" relativeToURL:baseURL:]; // resultURL : http://example.com/foo ``` 因此请注意如果 `baseUrl` 包含 Path 那么 `requestUrl` 的前缀不要在加入 `/` ,以免产生错误的的拼接结果。 ## Requirements ## Installation ANNetwork is available through [CocoaPods](https://cocoapods.org). To install it, simply add the following line to your Podfile: ```ruby pod 'ANNetwork' ``` ## Author duanlianjie, duanlianjie@icourt.cc ## License ANNetwork is available under the MIT license. See the LICENSE file for more info.