Call.Factory.Interceptor
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 30/100
Línea de trabajo
Start by reading the existing Call.Factory and Call.Factory.newCall() APIs, then examine how OkHttpClient.Builder exposes configuration. The issue proposes a new interceptor API that can replace a Call, but leaves its contract and behavior to be designed. Done means the API supports the listed use cases, including tracing, bridging, delaying, and redirecting requests.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Call.Factory is the correct API for clients, that allows intercetping calls to Call.Factory.newCall(). However it's not commonly used and does lose some features such as newBuilder().
I'm suggesting a new API for Call.Factory.Interceptor that will be part of OkHttpClient.Builder and allow replacing the Call instance.
Uses
- Tracing, which typically requires the calling thread for context
- Bridging - see https://github.com/google/cronet-transport-for-okhttp?tab=readme-ov-file#setting-up-the-library
- Delaying requests - in the case of Android 15 we may want to fast fail or delay requests while networking is blocked
- redirecting requests to other clients - https://github.com/google/horologist/blob/e24165ecaf9426f487014f2675b6ae4226fc86ca/network-awareness/okhttp/src/main/java/com/google/android/horologist/networks/okhttp/NetworkSelectingCallFactory.kt#L54
- Lenguaje dominante
- Kotlin
- Estrellas
- 47.1k
- Forks
- 9.3k
- Merge medio
- 18 h 18 min
- PR fusionados (30 d)
- 15
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de lysine-dev/okhttp
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
lysine-dev/okhttp#9788 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
lysine-dev/okhttp#9761 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
Remove crossinline `addInterceptor` and `addNetworkInterceptor` overloadsPosiblemente ocupada @Amir-Golmoradi la tomó hace 6 días. Abiertoenhancement
Dificultad 3/5 1-2 días Aptitud para principiantes 58/100
lysine-dev/okhttp#9779 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
HTTP/2 Data padding is not counted toward the connection flow-control window. This deadlocks connections with peers that pad.Posiblemente ocupada @Amir-Golmoradi la tomó hace 6 días. Abiertobug
Dificultad 3/5 1-2 días Aptitud para principiantes 67/100
lysine-dev/okhttp#9772 · 6 comentarios ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 55/100
lysine-dev/okhttp#9760 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de lysine-dev/okhttp
Issues similares
-
:maddi-inspection-kotlin:test runs out of heap in a full maddi test run; exit 1 with no failing testAbiertobuild/ci front-end:kotlin
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
bisq-network/bisq-mobile#1948 ·
Los mantenedores suelen responder en 1 día
-
bug-pending-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
NativeScript/NativeScript#11525 ·
Los mantenedores suelen responder en 1 día
-
afk-ok area:data-quality importer size:S
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
enorm-labs/event-junkie#3301 ·
Los mantenedores suelen responder en 1 día
-
Negate special case for Long literals uses the wrong valuePosiblemente ocupada @bryantaustin13 la tomó hoy. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
cqframework/clinical_quality_language#1865 ·
Los mantenedores suelen responder en 8 días