![]() ![]() We're offering support for Chucker on the #chucker channel on. You can sponsor us by clicking Sponsor button. Additionally, sponsorthip will also help us understand better how valuable Chucker is for people's everyday work. This will help us buy a domain for a website we will have soon and also spend some money on charity. If you use Chucker in your project, please consider sponsoring us. Sponsors □Ĭhucker is maintained and improved during nights, weekends and whenever team has free time. Chucker 3.5.x supports Android 16+ but its active development stopped and only bug fixes and minor improvements will land on 3.x branch till March 2021. In order to keep up with the changes in OkHttp we decided to bump its version in 4.x release. Why Android You can choose to use Chucker as either an application or network interceptor, depending on your requirements. Please refer to this section of the OkHttp documentation. Why are my encoded request/response bodies not appearing as plain text?.Why are retries and redirects not being captured discretely?.Content-Encoding or Accept-Encoding) missing? Why are some of my request headers (e.g.If you're looking for the latest stable version, you can always find it in Releases section. ⚠️ Please note that the latest snapshot might be unstable. ReleaseImplementation ":library-no-op:develop-SNAPSHOT " You can redact headers that contain sensitive information by calling redactHeader(String) on the ChuckerInterceptor.ĭebugImplementation ":library:develop-SNAPSHOT " It is intended for use during development, and not in release builds or other production deployments. Warning The data generated and stored when using Chucker may contain sensitive information such as Authorization or Cookie headers, and the contents of request and response bodies. Don't forget to plug the ChuckerInterceptor inside the OkHttpClient val client = OkHttpClient. Available in SNAPSHOTS versions only at the moment When multiple decoders are installed they // are applied in an order they were added. Use decoder when processing request and response bodies. This is useful in case of parsing errors or when the response body // is closed before being read like in Retrofit with Void and Unit types. Read the whole response body even when the client does not consume the response completely. redactHeaders( "Auth-Token ", "Bearer ") List of headers to replace with ** in the Chucker UI The max body content length in bytes, after this responses will be truncated. Create the Interceptor val chuckerInterceptor = ChuckerInterceptor. Allows to customize the retention period of collected data Toggles visibility of the notification Create the Collector val chuckerCollector = ChuckerCollector( You can customize chucker providing an instance of a ChuckerCollector: ![]() The main Chucker activity is launched in its own task, allowing it to be displayed alongside the host app UI using Android 7.x multi-window support. Support for custom decoding of HTTP bodies.Support for showing images in HTTP Responses □.Support for body text search with highlighting □️♂️.Empty release artifact □ (no traces of Chucker in your final APK).Works out of the box, no customization needed.Easy to integrate (just 2 gradle implementation lines).Features □ĭon't forget to check the changelog to have a look at all the changes in the latest version of Chucker. You can find older version of Chucker here. Historically, Chucker was distributed through JitPack. That's it! □ Chucker will now record all HTTP interactions made by your OkHttp client. For Kotlin projects add also this line Please note that you should add both the library and the library-no-op variant to isolate Chucker from release builds as follows: To use it you need to add the following Gradle dependency to the adle file of your android app module (NOT the root file). Apps can optionally suppress the notification, and launch the Chucker UI directly from within their own interface.Ĭhucker is distributed through Maven Central. Tapping on the notification launches the full Chucker UI. Chucker works as an OkHttp Interceptor persisting all those events inside your application, and providing a UI for inspecting and sharing their content.Īpps using Chucker will display a notification showing a summary of ongoing HTTP activity. Chucker simplifies the inspection of HTTP(S) requests/responses fired by your Android App.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |