ChaosHttpHandler Class
- java.
lang. Object - com.
microsoft. graph. httpcore. ChaosHttpHandler
- com.
Implements
public class ChaosHttpHandler
implements okhttp3.Interceptor
DO NOT USE IN PRODUCTION interceptor that randomly fails the responses for unit testing purposes
Field Summary
| Modifier and Type | Field and Description |
|---|---|
|
final
Middleware |
MIDDLEWARE_TYPE
The current middleware type |
| static final int |
MSClientErrorCodeTooManyRequests
Too many requests status code |
Constructor Summary
| Constructor | Description | |
|---|---|---|
| ChaosHttpHandler() | ||
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| okhttp3.Response | intercept(Interceptor.Chain chain) |
Methods inherited from java.lang.Object
Field Details
MIDDLEWARE_TYPE
public final MiddlewareType MIDDLEWARE_TYPE
The current middleware type
MSClientErrorCodeTooManyRequests
public static final int MSClientErrorCodeTooManyRequests
Too many requests status code
Constructor Details
ChaosHttpHandler
public ChaosHttpHandler()
Method Details
intercept
public Response intercept(Interceptor.Chain chain)
Parameters:
Throws: