模块 okhttps

类 StreamRequestBody


  • public class StreamRequestBody
    extends okhttp3.RequestBody
    流式请求体
    从以下版本开始:
    v3.5.0
    作者:
    Troy.Zhou @ 2021-09-01
    • 构造器详细资料

      • StreamRequestBody

        public StreamRequestBody​(okhttp3.MediaType contentType,
                                 InputStream inputStream)
    • 方法详细资料

      • contentType

        public okhttp3.MediaType contentType()
        指定者:
        contentType 在类中 okhttp3.RequestBody
      • writeTo

        public void writeTo​(okio.BufferedSink sink)
                     throws IOException
        指定者:
        writeTo 在类中 okhttp3.RequestBody
        抛出:
        IOException
      • isOneShot

        public boolean isOneShot()
        覆盖:
        isOneShot 在类中 okhttp3.RequestBody