Class CountingStreamRequestBody


  • public class CountingStreamRequestBody
    extends okhttp3.RequestBody
    • Field Detail

      • CONTENT_BINARY

        protected static final okhttp3.MediaType CONTENT_BINARY
      • requestBodyData

        protected final T requestBodyData
    • Method Detail

      • contentLength

        public long contentLength()
                           throws java.io.IOException
        Overrides:
        contentLength in class okhttp3.RequestBody
        Throws:
        java.io.IOException
      • writeTo

        public void writeTo​(okio.BufferedSink sink)
        Specified by:
        writeTo in class okhttp3.RequestBody
      • contentType

        public okhttp3.MediaType contentType()
        Specified by:
        contentType in class okhttp3.RequestBody