public class BugBattleHttpInterceptor
extends java.lang.Object
| Constructor and Description |
|---|
BugBattleHttpInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
static void |
log(java.lang.String urlConnection,
RequestType requestType,
int status,
int duration,
org.json.JSONObject request,
org.json.JSONObject response)
Log Http calls sent from the device.
|
public static void log(java.lang.String urlConnection,
RequestType requestType,
int status,
int duration,
org.json.JSONObject request,
org.json.JSONObject response)
urlConnection - url the request sent torequestType - type of request. (GET, POST, PUT, DELETE, PATCH)status - http status codeduration - duration in millisecondsrequest - JSON Object including important informations of the request. Recommanded:
headers, payloadresponse - JSON Object including important informations of the response. Recommanded:
headers, payload, body