public class GanderInterceptor
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GanderInterceptor.Period |
| Constructor and Description |
|---|
GanderInterceptor(android.content.Context context) |
| Modifier and Type | Method and Description |
|---|---|
Response |
intercept(Chain chain) |
GanderInterceptor |
maxContentLength(long max)
Set the maximum length for request and response content before it is truncated.
|
GanderInterceptor |
redactHeader(java.lang.String name)
Set headers names that shouldn't be stored by gander
|
GanderInterceptor |
retainDataFor(GanderInterceptor.Period period)
Set the retention period for HTTP transaction data captured by this interceptor.
|
GanderInterceptor |
showNotification(boolean sticky)
Control whether a notification is shown while HTTP activity is recorded.
|
public GanderInterceptor(android.content.Context context)
context - The current Context.public GanderInterceptor showNotification(boolean sticky)
sticky - true to show a sticky notification.GanderInterceptor instance.public GanderInterceptor retainDataFor(GanderInterceptor.Period period)
period - the period for which to retain HTTP transaction data.GanderInterceptor instance.public GanderInterceptor maxContentLength(long max)
max - the maximum length (in bytes) for request/response content.GanderInterceptor instance.public GanderInterceptor redactHeader(java.lang.String name)
name - the name of header to redactGanderInterceptor instance.public Response intercept(Chain chain)
throws java.io.IOException
java.io.IOException