Class TypedBody<T extends TypedBody<T>>

java.lang.Object
okhttp3.RequestBody
net.dv8tion.jda.internal.utils.requestbody.TypedBody<T>
Direct Known Subclasses:
BufferedRequestBody, DataSupplierBody

public abstract class TypedBody<T extends TypedBody<T>> 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, EMPTY
  • Method Summary

    Modifier and Type
    Method
    Description
    okhttp3.MediaType
     
    abstract T
    withType(okhttp3.MediaType newType)
     

    Methods inherited from class okhttp3.RequestBody

    contentLength, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, isDuplex, isOneShot, writeTo

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • withType

      @Nonnull public abstract T withType(@Nonnull okhttp3.MediaType newType)
    • contentType

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