Package org.onyx.http

Class LoggingInterceptor

java.lang.Object
org.onyx.http.LoggingInterceptor
All Implemented Interfaces:
okhttp3.Interceptor

public class LoggingInterceptor extends Object implements okhttp3.Interceptor
The LoggingInterceptor object logs http requests given an output stream.
  • Constructor Details

  • Method Details

    • intercept

      public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException
      Specified by:
      intercept in interface okhttp3.Interceptor
      Throws:
      IOException
    • logRequestData

      public void logRequestData(okhttp3.Request request, okhttp3.Response response) throws IOException
      Throws:
      IOException