Package kubevirt

Class GzipRequestInterceptor

  • All Implemented Interfaces:
    com.squareup.okhttp.Interceptor

    class GzipRequestInterceptor
    extends java.lang.Object
    implements com.squareup.okhttp.Interceptor
    Encodes request bodies using gzip. Taken from https://github.com/square/okhttp/issues/350
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.squareup.okhttp.Interceptor

        com.squareup.okhttp.Interceptor.Chain
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private com.squareup.okhttp.RequestBody forceContentLength​(com.squareup.okhttp.RequestBody requestBody)  
      private com.squareup.okhttp.RequestBody gzip​(com.squareup.okhttp.RequestBody body)  
      com.squareup.okhttp.Response intercept​(com.squareup.okhttp.Interceptor.Chain chain)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GzipRequestInterceptor

        GzipRequestInterceptor()
    • Method Detail

      • intercept

        public com.squareup.okhttp.Response intercept​(com.squareup.okhttp.Interceptor.Chain chain)
                                               throws java.io.IOException
        Specified by:
        intercept in interface com.squareup.okhttp.Interceptor
        Throws:
        java.io.IOException
      • forceContentLength

        private com.squareup.okhttp.RequestBody forceContentLength​(com.squareup.okhttp.RequestBody requestBody)
                                                            throws java.io.IOException
        Throws:
        java.io.IOException
      • gzip

        private com.squareup.okhttp.RequestBody gzip​(com.squareup.okhttp.RequestBody body)