Search in sources :

Example 1 with OkHttp3LogBodyMessage

use of com.dtflys.forest.backend.okhttp3.logging.OkHttp3LogBodyMessage in project forest by dromara.

the class OkHttp3Executor method setLogBody.

protected void setLogBody(RequestLogMessage message, Request okRequest) {
    RequestBody requestBody = okRequest.body();
    LogBodyMessage logBodyMessage = new OkHttp3LogBodyMessage(requestBody);
    message.setBody(logBodyMessage);
}
Also used : OkHttp3LogBodyMessage(com.dtflys.forest.backend.okhttp3.logging.OkHttp3LogBodyMessage) OkHttp3LogBodyMessage(com.dtflys.forest.backend.okhttp3.logging.OkHttp3LogBodyMessage) LogBodyMessage(com.dtflys.forest.logging.LogBodyMessage) RequestBody(okhttp3.RequestBody)

Aggregations

OkHttp3LogBodyMessage (com.dtflys.forest.backend.okhttp3.logging.OkHttp3LogBodyMessage)1 LogBodyMessage (com.dtflys.forest.logging.LogBodyMessage)1 RequestBody (okhttp3.RequestBody)1