{"id":1358,"url":"https://github.com/AckeeCZ/Reqres","last_synced_at":"2025-08-02T04:30:57.440Z","repository":{"id":54433611,"uuid":"67406932","full_name":"AckeeCZ/Reqres","owner":"AckeeCZ","description":"Simple network activity logger for iOS","archived":false,"fork":false,"pushed_at":"2024-10-05T18:30:50.000Z","size":675,"stargazers_count":91,"open_issues_count":3,"forks_count":15,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-07-08T12:18:02.512Z","etag":null,"topics":["alamofire","ios","logging","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/AckeeCZ.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":"Supporting files/Reqres.plist","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-09-05T09:25:38.000Z","updated_at":"2025-06-20T06:47:01.000Z","dependencies_parsed_at":"2024-11-24T18:16:44.476Z","dependency_job_id":null,"html_url":"https://github.com/AckeeCZ/Reqres","commit_stats":{"total_commits":110,"total_committers":9,"mean_commits":"12.222222222222221","dds":"0.49090909090909096","last_synced_commit":"d0fbb22a3790d401d80bed0d1157d4e338235c49"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/AckeeCZ/Reqres","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AckeeCZ%2FReqres","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AckeeCZ%2FReqres/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AckeeCZ%2FReqres/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AckeeCZ%2FReqres/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AckeeCZ","download_url":"https://codeload.github.com/AckeeCZ/Reqres/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AckeeCZ%2FReqres/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268334609,"owners_count":24233793,"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-02T02:00:12.353Z","response_time":74,"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":["alamofire","ios","logging","swift"],"created_at":"2024-01-05T20:15:44.621Z","updated_at":"2025-08-02T04:30:57.144Z","avatar_url":"https://github.com/AckeeCZ.png","language":"Swift","funding_links":[],"categories":["Logging"],"sub_categories":["Other Hardware","Other free courses"],"readme":"![ackee|Reqres](Resources/cover-image.png)\n\n![Tests](https://github.com/AckeeCZ/ACKategories/workflows/Tests/badge.svg)\n[![Version](https://img.shields.io/cocoapods/v/Reqres.svg?style=flat)](http://cocoapods.org/pods/Reqres)\n[![License](https://img.shields.io/cocoapods/l/Reqres.svg?style=flat)](http://cocoapods.org/pods/Reqres)\n[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![Platform](https://img.shields.io/cocoapods/p/Reqres.svg?style=flat)](http://cocoapods.org/pods/Reqres)\n\nReqres is a simple library for logging all requests and responses in your app. It supports Alamofire and also requests made via native NSURLSession.\n\n```\n⬆️ POST 'https://ackee.cz/examples'\nHeaders: [\n    Accept-Encoding : gzip;q=1.0, compress;q=0.5\n    Accept-Language : en-US;q=1.0\n    Content-Type : application/json\n    User-Agent : Reqres_Example/org.cocoapods.demo.Reqres-Example (1; OS Version 9.3 (Build 13E230))\n    Content-Length : 13\n]\nBody: {\n    \"foo\" : \"bar\"\n}\n\n...\n\n⬇️ POST https://ackee.cz/examples (✅ 201 Created) [time: 0.54741 s]\nHeaders: [\n    Vary : Authorization,Accept-Encoding\n    Content-Encoding : gzip\n    Content-Length : 13\n    Server : Apache\n    Content-Type : application/json\n    Date : Mon, 05 Sep 2016 07:33:51 GMT\n    Cache-Control : no-cache\n]\nBody: {\n    \"foo\" : \"bar\"\n}\n```\n\n## Installation\n\n### CocoaPods\n\nReqres is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod \"Reqres\"\n```\n\n### Carthage\n\nYou can use [Carthage](https://github.com/Carthage/Carthage).\nSpecify in Cartfile:\n\n```ruby\ngithub \"AckeeCZ/Reqres\"\n```\n\nRun `carthage update` to build the framework and drag the built Reqres.framework into your Xcode project. Follow [build instructions](https://github.com/Carthage/Carthage#getting-started). [New Issue](https://github.com/AckeeCZ/Reqres/issues/new).\n\n## Usage\nInitialization is different for usage with Alamofire and NSURLSession.\n\n### Alamofire\nCreate your `SessionManager` with proper configuration to make it work with Alamofire.\n```swift\nlet configuration = Reqres.defaultSessionConfiguration()\nconfiguration.httpAdditionalHeaders = SessionManager.defaultHTTPHeaders\nlet alamofireManager = SessionManager(configuration: configuration)\nReqres.sessionDelegate = alamofireManager.delegate\n```\nThen you must use this manager for all requests, so replace all `Alamofire.request(...)` to `alamofireManager.request(...)`\n\n### Usage without Alamofire\nRegister Reqres on application startup and it will monitor and log any requests you make via NSURLSession or NSURLConnection.\n\n```swift\nReqresLogger.register()\n```\n\n## Customization\nYou can do some settings to make it fit your needs.\n\n### Custom logger\nReqres uses default `print()` for logging to avoid unnecessary dependencies but it's ready for any logging framework. Make your custom logger class which complies to `ReqresLogging` protocol and set it to Reqres, that's all.\n```\nclass MyLogger: ReqresLogging {\n    ...\n}\n\nReqresLogger.logger = MyLogger()\n```\n\n### Log level\nYou can use 3 different log levels:\n- **None** - made for production use, it completely disables all Reqres functionality\n- **Light** - Logs only basic info (method, url, status code and time)\n```\n⬆️ POST 'https://ackee.cz/examples'\n...\n⬇️ POST https://ackee.cz/examples (✅ 201 Created) [time: 0.54741 s]\n```\n- **Verbose** - Logs also headers and body (see example above)\n\nReqres uses `Verbose` log level by default. To change log level just set right value to `Reqres.logger.logLevel`\n\n### Emoji\nReqres uses emoji to make log better to read and to make it at least a little funny and nice. If you dont't like that, you can turn it off of course.\n```swift\nReqresLogger.allowUTF8Emoji = false\n```\n\n## Forking this repository\nIf you use Reqres in your projects drop us as tweet at [@ackeecz][1]. We would love to hear about it!\n\n## Sharing is caring\nThis tool and repo has been opensourced within our `#sharingiscaring` action when we have decided to opensource our internal projects.\n\n## Author\n\n[Ackee](https://www.ackee.cz) team. We were inspired by andysmart's [Timberjack](https://github.com/andysmart/Timberjack)\n\n## License\n\nReqres is available under the MIT license. See the LICENSE file for more info.\n\n[1]:\thttps://twitter.com/AckeeCZ\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAckeeCZ%2FReqres","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAckeeCZ%2FReqres","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAckeeCZ%2FReqres/lists"}