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
The number of bytes sent.
Link copied to clipboard
The time the request ended.
Link copied to clipboard
Error object that describes a non-HTTP error, e.g.
Link copied to clipboard
Error message that describes a non-HTTP error, e.g.
Link copied to clipboard
Error type that describes a non-HTTP error, e.g.
Link copied to clipboard
val networkCaptureData: NetworkCaptureData
Network capture data for the request.
Link copied to clipboard
The response status of the request.
Link copied to clipboard
The time the request started.
Link copied to clipboard
Optional trace ID that can be used to trace a particular request.
Link copied to clipboard
The request's URL.
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
open fun getBytesIn(): Long
Link copied to clipboard
Link copied to clipboard