⚠️ Is your feature request related to a problem? Please describe
Sometimes I might not want to involve Chucker in the interception process on some endpoints. For example I know that request or response will be too large so Chucker won't handle it anyway. Or there might be some bug preventing me from using Chucker on this endpoint but I don't want to downgrade it as there are some other features I like in the new version.
💡 Describe the solution you'd like
Add a header to the request that would be detected by the ChuckerInterceptor and inform it to not process the request. ChuckerInterceptor would then strip this header and pass it to down the chain without processing it.
It might be something like this.
fun Service {
@GET("/")
@Headers(Chucker.SKIP_INTERCEPTOR)
fun networkRequest(): Unit
}
🙋 Do you want to develop this feature yourself?
Sometimes I might not want to involve Chucker in the interception process on some endpoints. For example I know that request or response will be too large so Chucker won't handle it anyway. Or there might be some bug preventing me from using Chucker on this endpoint but I don't want to downgrade it as there are some other features I like in the new version.
💡 Describe the solution you'd like
Add a header to the request that would be detected by the
ChuckerInterceptorand inform it to not process the request.ChuckerInterceptorwould then strip this header and pass it to down the chain without processing it.It might be something like this.
🙋 Do you want to develop this feature yourself?