enableTrace

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

serviceName

(nullable) Name of the service which this request will be sent to.

traceRequest

Trace the request (URL), and basic request/response flow. Note: this may result in tracing of sensitive data, such as URL query parameters.

traceHeaders

Trace the headers. Note: this may result in tracing of sensitive data, such as authentication information or cookie values.

traceContent

Trace the content. Note: this may result in tracing of sensitive data.

prettyPrint

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.