Embrace Network Request
This class is used to create manually-recorded network requests.
Properties
Link copied to clipboard
The number of bytes received.
Link copied to clipboard
Error message that describes a non-HTTP error, e.g.
Link copied to clipboard
Network capture data for the request.
Link copied to clipboard
The response status of the request.
Link copied to clipboard
Optional W3C-compliant traceparent representing the network call that is being recorded
Functions
Link copied to clipboard
public static EmbraceNetworkRequest fromCompletedRequest(@NonNull() String url, @NonNull() HttpMethod httpMethod, long startTime, long endTime, long bytesSent, long bytesReceived, int statusCode)
public static EmbraceNetworkRequest fromCompletedRequest(@NonNull() String url, @NonNull() HttpMethod httpMethod, long startTime, long endTime, long bytesSent, long bytesReceived, int statusCode, @Nullable() String traceId)
public static EmbraceNetworkRequest fromCompletedRequest(@NonNull() String url, @NonNull() HttpMethod httpMethod, long startTime, long endTime, long bytesSent, long bytesReceived, int statusCode, @Nullable() String traceId, @Nullable() NetworkCaptureData networkCaptureData)
public static EmbraceNetworkRequest fromCompletedRequest(@NonNull() String url, @NonNull() HttpMethod httpMethod, long startTime, long endTime, long bytesSent, long bytesReceived, int statusCode, @Nullable() String traceId, @Nullable() String w3cTraceparent, @Nullable() NetworkCaptureData networkCaptureData)
Construct a new EmbraceNetworkRequest instance where a HTTP response was returned.
Link copied to clipboard
public static EmbraceNetworkRequest fromIncompleteRequest(@NonNull() String url, @NonNull() HttpMethod httpMethod, long startTime, long endTime, @NonNull() String errorType, @NonNull() String errorMessage)
public static EmbraceNetworkRequest fromIncompleteRequest(@NonNull() String url, @NonNull() HttpMethod httpMethod, long startTime, long endTime, @NonNull() String errorType, @NonNull() String errorMessage, @Nullable() String traceId)
public static EmbraceNetworkRequest fromIncompleteRequest(@NonNull() String url, @NonNull() HttpMethod httpMethod, long startTime, long endTime, @NonNull() String errorType, @NonNull() String errorMessage, @Nullable() String traceId, @Nullable() NetworkCaptureData networkCaptureData)
public static EmbraceNetworkRequest fromIncompleteRequest(@NonNull() String url, @NonNull() HttpMethod httpMethod, long startTime, long endTime, @NonNull() String errorType, @NonNull() String errorMessage, @Nullable() String traceId, @Nullable() String w3cTraceparent, @Nullable() NetworkCaptureData networkCaptureData)
Construct a new EmbraceNetworkRequest instance where a HTTP response was not returned.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard