模块 okhttps

类 FixedRequestBody

  • 直接已知子类:
    ProcessRequestBody

    public class FixedRequestBody
    extends okhttp3.RequestBody
    修复报文体在写出过程中会发生无法被异常回调捕获的非 IO 异常的问题
    从以下版本开始:
    v3.1.5
    作者:
    Troy.Zhou @ 2021-09-01
    • 构造器详细资料

      • FixedRequestBody

        public FixedRequestBody​(okhttp3.RequestBody requestBody)
    • 方法详细资料

      • contentLength

        public long contentLength()
                           throws IOException
        覆盖:
        contentLength 在类中 okhttp3.RequestBody
        抛出:
        IOException
      • isDuplex

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

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

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

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