{"repo":"CodingAleCR/http_interceptor","free":true,"listed":false,"github":"https://github.com/CodingAleCR/http_interceptor","clone":"git clone https://github.com/CodingAleCR/http_interceptor.git","description":"A lightweight, simple plugin that allows you to intercept request and response objects and modify them if desired.","language":"Dart","stars":137,"topics":["flutter","plugin","dart-library","dart","http-interceptor","retrying-requests","open-source","http","http-requests","interceptors"],"license":"MIT","category":"mobile-apps","readme_excerpt":"http interceptor This is a plugin that lets you intercept the different requests and responses from Dart's http package. You can use to add headers, modify query params, or print a log of the response. Quick Reference Upgrading from 2.x? See the 3.0.0 migration guide. - http\\ interceptor - Quick Reference - Installation - Features - Usage - Building your own interceptor - Using your interceptor - Using interceptors with Client - Using interceptors without Client - Working with JSON responses - Decoding responses into models - Retrying requests - Using self signed certificates - InterceptedClient - InterceptedHttp - Roadmap - Troubleshooting - Contributions - Contributors Installation Include the package with the latest version available in your pubspec.yaml . Features - 🚦 Intercept & change unstreamed requests and responses. - ✨ Retrying requests when an error occurs or when the response does not match the desired (useful for handling custom error responses). - 👓 GET requests with separated parameters. - ⚡️ Standard Response.bodyBytes for encoding or decoding as needed. - 📦 Convenience helpers to decode JSON responses and map them into your own models. - 🙌🏼 Array parameters on requests. - 🖋 Supports self-signed certificates (except on Flutter Web). - 🍦 Compatible with vanilla Dart projects or Flutter projects. - 🎉 Null-safety. - ⏲ Timeout configuration with duration and timeout functions. - ⏳ Configure the delay for each retry attempt. Usage Building your own intercep","default_branch":null,"files":null,"tree":[],"storefront":"/r/CodingAleCR","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/CodingAleCR/http_interceptor/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}