Package org.openapitools.client
Class ForceChunkedMultipartInterceptor
java.lang.Object
org.openapitools.client.ForceChunkedMultipartInterceptor
- All Implemented Interfaces:
okhttp3.Interceptor
OkHttp interceptor that forces multipart request bodies to have unknown content length,
causing HTTP/1.1 requests to be sent using chunked transfer encoding.
Note: HTTP/2 does not use Transfer-Encoding: chunked.
-
Nested Class Summary
Nested classes/interfaces inherited from interface okhttp3.Interceptor
okhttp3.Interceptor.Chain, okhttp3.Interceptor.Companion -
Field Summary
Fields inherited from interface okhttp3.Interceptor
Companion -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ForceChunkedMultipartInterceptor
public ForceChunkedMultipartInterceptor()
-
-
Method Details
-
intercept
- Specified by:
interceptin interfaceokhttp3.Interceptor- Throws:
IOException
-