enable Trace
open fun enableTrace(serviceName: String?, traceRequest: Boolean, traceHeaders: Boolean, traceContent: Boolean, prettyPrint: Boolean)
Enable HTTP request tracing. Call this before calling {@link com.sap.cloud.mobile.kotlin.odata.http.HttpRequest#send() HttpRequest.send}.
Parameters
service Name
(nullable) Name of the service which this request will be sent to.
trace Request
Trace the request (URL), and basic request/response flow. Note: this may result in tracing of sensitive data, such as URL query parameters.
trace Headers
Trace the headers. Note: this may result in tracing of sensitive data, such as authentication information or cookie values.
trace Content
Trace the content. Note: this may result in tracing of sensitive data.
pretty Print
If traceContent is true and {@link com.sap.cloud.mobile.kotlin.odata.http.HttpRequest#streamResponse HttpRequest.streamResponse} is false, then content tracing of JSON or XML will be pretty-printed.