{"id":30367211,"url":"https://github.com/elfsundae/afnetworkextension","last_synced_at":"2025-08-19T23:13:58.966Z","repository":{"id":56900365,"uuid":"192488627","full_name":"ElfSundae/AFNetworkExtension","owner":"ElfSundae","description":"AFNetworking 3/4 Extensions","archived":false,"fork":false,"pushed_at":"2021-03-18T12:19:52.000Z","size":125,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-15T01:55:35.569Z","etag":null,"topics":["afnetworking","extension","ios","logging","networking","reachability"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ElfSundae.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-18T07:27:50.000Z","updated_at":"2021-03-18T12:19:43.000Z","dependencies_parsed_at":"2022-08-21T02:20:40.597Z","dependency_job_id":null,"html_url":"https://github.com/ElfSundae/AFNetworkExtension","commit_stats":null,"previous_names":["elfsundae/afnetworkingextension"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/ElfSundae/AFNetworkExtension","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElfSundae%2FAFNetworkExtension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElfSundae%2FAFNetworkExtension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElfSundae%2FAFNetworkExtension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElfSundae%2FAFNetworkExtension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ElfSundae","download_url":"https://codeload.github.com/ElfSundae/AFNetworkExtension/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElfSundae%2FAFNetworkExtension/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271236297,"owners_count":24723983,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-19T02:00:09.176Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["afnetworking","extension","ios","logging","networking","reachability"],"created_at":"2025-08-19T23:13:58.435Z","updated_at":"2025-08-19T23:13:58.952Z","avatar_url":"https://github.com/ElfSundae.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AFNetworkExtension\n\n[![Build status](https://github.com/ElfSundae/AFNetworkExtension/workflows/Build/badge.svg)](https://github.com/ElfSundae/AFNetworkExtension/actions?query=workflow%3ABuild)\n![CocoaPods](https://img.shields.io/cocoapods/v/AFNetworkExtension)\n![CocoaPods platforms](https://img.shields.io/cocoapods/p/AFNetworkExtension)\n\n[AFNetworking](https://github.com/AFNetworking/AFNetworking) 3/4 extensions.\n\n## Installation\n\n```ruby\npod 'AFNetworkExtension'\n```\n\nYou may also like to install my patched [`AFNetworking`](https://github.com/ElfSundae/AFNetworking) and [`AFNetworkActivityLogger`](https://github.com/ElfSundae/CocoaPods-Specs/tree/master/Specs/AFNetworkActivityLogger) pods, just add my spec-repo source URL before the Trunk source in your `Podfile`:\n\n```ruby\nsource 'https://github.com/ElfSundae/CocoaPods-Specs.git'\nsource 'https://cdn.cocoapods.org/'\n\ntarget 'Example' do\n    pod 'AFNetworkExtension'\nend\n```\n\n## Usage\n\n```objc\nNSURL *baseURL = [NSURL URLWithString:@\"https://api.github.com\"];\nAFHTTPSessionManager *manager = [[AFHTTPSessionManager alloc] initWithBaseURL:baseURL];\n```\n\n### [AFNetworkActivityLogger](https://github.com/AFNetworking/AFNetworkActivityLogger) extension\n\n```objc\n#if DEBUG\nmanager.logger.enabled = YES;\n[manager.logger setLogLevel:AFLoggerLevelDebug];\n#endif\n```\n\n### AFHTTPSessionManager extension\n\n```objc\n// https://api.github.com/users/ElfSundae\nNSURL *url = [manager URLWithPath:@\"users/ElfSundae\"];\n\n// Get all tasks which API path has prefix \"/users/\"\n[manager tasksWithPath:@\"users/*\"];\n\n// Get all POST tasks that requesting API path \"/foo/bar\"\n[manager tasksWithPath:@\"foo/bar\" method:@\"POST\"];\n```\n\n### AFNetworkReachabilityManager extension\n\nGet a string representation of an `AFNetworkReachabilityStatus` value:\n\n```objc\nAFNetworkReachabilityManager *reachability = [AFNetworkReachabilityManager sharedManager];\n\n// 2\nNSLog(@\"%ld\", reachability.networkReachabilityStatus);\n\n// @\"WiFi\"\nNSLog(@\"%@\", reachability.networkReachabilityStatusString);\n\n// @\"Reachable via WiFi\"\nNSLog(@\"%@\", reachability.localizedNetworkReachabilityStatusString);\n\n// WWAN\nNSLog(@\"%@\", AFNetworkReachabilityStatusString(AFNetworkReachabilityStatusReachableViaWWAN));\n```\n\n### AFHTTPRequestSerializer extension\n\n```objc\nmanager.requestSerializer.HTTPRequestHeadersBlock = ^NSDictionary\u003cNSString *, id\u003e * (NSURLRequest * request, id parameters) {\n    return @{ @\"FooHeader\": NSUUID.UUID.UUIDString };\n};\n\nmanager.requestSerializer.URLQueryParametersBlock = ^NSDictionary\u003cNSString *, id\u003e * (NSString * method, NSString * URLString, id parameters) {\n    return @{ @\"_time\": @((long)NSDate.date.timeIntervalSince1970) };\n};\n```\n\n## License\n\nAFNetworkExtension is available under the MIT license. See the [LICENSE](LICENSE) file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felfsundae%2Fafnetworkextension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felfsundae%2Fafnetworkextension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felfsundae%2Fafnetworkextension/lists"}