Skip to content

Allow to selectively skip Chucker interception #266

@MiSikora

Description

@MiSikora

⚠️ 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?

  • Yes
  • No

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestRequest a new feature to be developed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions