Class HttpRequestBody

java.lang.Object
okhttp3.RequestBody
io.odilon.client.http.HttpRequestBody

public class HttpRequestBody extends okhttp3.RequestBody
RequestBody that wraps a single data object.
Author:
atolomei@novamens.com (Alejandro Tolomei)
  • 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
    HttpRequestBody(String contentType, Object data, int len)
     
  • Method Summary

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

    Methods inherited from class okhttp3.RequestBody

    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

    • HttpRequestBody

      public HttpRequestBody(String contentType, Object data, int len)
  • Method Details

    • contentType

      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(okio.BufferedSink sink) throws IOException
      Specified by:
      writeTo in class okhttp3.RequestBody
      Throws:
      IOException