Class PathRequestBody

java.lang.Object
okhttp3.RequestBody
api.longpoll.bots.http.PathRequestBody

public class PathRequestBody extends okhttp3.RequestBody
Wraps Path into 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
     
  • Method Summary

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

    Methods inherited from class okhttp3.RequestBody

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

    Methods inherited from class java.lang.Object

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

    • PathRequestBody

      public PathRequestBody(Path path)
  • Method Details

    • contentType

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

      public void writeTo(@NotNull okio.BufferedSink bufferedSink) throws IOException
      Specified by:
      writeTo in class okhttp3.RequestBody
      Throws:
      IOException