Class OkHttpRequestBody

java.lang.Object
okhttp3.RequestBody
ru.tinkoff.kora.http.client.ok.OkHttpRequestBody

public final class OkHttpRequestBody extends okhttp3.RequestBody
  • Nested Class Summary

    Nested classes/interfaces inherited from class okhttp3.RequestBody

    okhttp3.RequestBody.Companion
  • Field Summary

    Fields inherited from class okhttp3.RequestBody

    Companion
  • Constructor Summary

    Constructors
    Constructor
    Description
    OkHttpRequestBody(ru.tinkoff.kora.http.common.body.HttpBodyOutput bodyOutput)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
     
    okhttp3.MediaType
     
    void
    writeTo(okio.BufferedSink bufferedSink)
     

    Methods inherited from class okhttp3.RequestBody

    create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, gzip, isDuplex, isOneShot

    Methods inherited from class java.lang.Object

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

    • OkHttpRequestBody

      public OkHttpRequestBody(ru.tinkoff.kora.http.common.body.HttpBodyOutput bodyOutput)
  • Method Details

    • contentType

      @Nullable public okhttp3.MediaType contentType()
      Specified by:
      contentType in class okhttp3.RequestBody
    • contentLength

      public long contentLength()
      Overrides:
      contentLength in class okhttp3.RequestBody
    • writeTo

      public void writeTo(@Nonnull okio.BufferedSink bufferedSink)
      Specified by:
      writeTo in class okhttp3.RequestBody