Join Slack
Powered by
you can't just grab the buffer and clone it becaus...
# android
j
jw
09/24/2017, 3:52 PM
you can't just grab the buffer and clone it because it might be empty
c
charbgr
09/24/2017, 4:13 PM
I am saying this because on OkHttp logging interceptor there is no
peekBody
charbgr
09/24/2017, 4:13 PM
https://github.com/square/okhttp/blob/master/okhttp-logging-interceptor/src/main/java/okhttp3/logging/HttpLoggingInterceptor.java#L257
j
jw
09/24/2017, 6:14 PM
Yes but above it does request(Long.MAX_VALUE). peekBody does both of those and wraps back into a ResponseBody for convenience
5
Views
Open in Slack
Previous
Next