EmbraceNetworkRequest
class EmbraceNetworkRequest
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
open fun fromCompletedRequest(@NonNull url: String, @NonNull httpMethod: HttpMethod, startTime: Long, endTime: Long, bytesSent: Long, bytesReceived: Long, statusCode: Int): EmbraceNetworkRequest
open fun fromCompletedRequest(@NonNull url: String, @NonNull httpMethod: HttpMethod, startTime: Long, endTime: Long, bytesSent: Long, bytesReceived: Long, statusCode: Int, @Nullable traceId: String): EmbraceNetworkRequest
open fun fromCompletedRequest(@NonNull url: String, @NonNull httpMethod: HttpMethod, startTime: Long, endTime: Long, bytesSent: Long, bytesReceived: Long, statusCode: Int, @Nullable traceId: String, @Nullable networkCaptureData: NetworkCaptureData): EmbraceNetworkRequest
open fun fromCompletedRequest(@NonNull url: String, @NonNull httpMethod: HttpMethod, startTime: Long, endTime: Long, bytesSent: Long, bytesReceived: Long, statusCode: Int, @Nullable traceId: String, @Nullable w3cTraceparent: String, @Nullable networkCaptureData: NetworkCaptureData): EmbraceNetworkRequest
Construct a new EmbraceNetworkRequest instance where a HTTP response was returned.
Link copied to clipboard
open fun fromIncompleteRequest(@NonNull url: String, @NonNull httpMethod: HttpMethod, startTime: Long, endTime: Long, @NonNull errorType: String, @NonNull errorMessage: String): EmbraceNetworkRequest
open fun fromIncompleteRequest(@NonNull url: String, @NonNull httpMethod: HttpMethod, startTime: Long, endTime: Long, @NonNull errorType: String, @NonNull errorMessage: String, @Nullable traceId: String): EmbraceNetworkRequest
open fun fromIncompleteRequest(@NonNull url: String, @NonNull httpMethod: HttpMethod, startTime: Long, endTime: Long, @NonNull errorType: String, @NonNull errorMessage: String, @Nullable traceId: String, @Nullable networkCaptureData: NetworkCaptureData): EmbraceNetworkRequest
open fun fromIncompleteRequest(@NonNull url: String, @NonNull httpMethod: HttpMethod, startTime: Long, endTime: Long, @NonNull errorType: String, @NonNull errorMessage: String, @Nullable traceId: String, @Nullable w3cTraceparent: String, @Nullable networkCaptureData: NetworkCaptureData): EmbraceNetworkRequest
Construct a new EmbraceNetworkRequest instance where a HTTP response was not returned.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard