Class OkHttpResponse

java.lang.Object
ru.tinkoff.kora.http.client.ok.OkHttpResponse
All Implemented Interfaces:
Closeable, AutoCloseable, ru.tinkoff.kora.http.client.common.response.HttpClientResponse

public final class OkHttpResponse extends Object implements ru.tinkoff.kora.http.client.common.response.HttpClientResponse
  • Nested Class Summary

    Nested classes/interfaces inherited from interface ru.tinkoff.kora.http.client.common.response.HttpClientResponse

    ru.tinkoff.kora.http.client.common.response.HttpClientResponse.Default
  • Constructor Summary

    Constructors
    Constructor
    Description
    OkHttpResponse(okhttp3.Response response)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    ru.tinkoff.kora.http.common.body.HttpBodyInput
     
    void
     
    int
     
    ru.tinkoff.kora.http.common.header.HttpHeaders
     
     

    Methods inherited from class java.lang.Object

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

    • OkHttpResponse

      public OkHttpResponse(okhttp3.Response response)
  • Method Details

    • code

      public int code()
      Specified by:
      code in interface ru.tinkoff.kora.http.client.common.response.HttpClientResponse
    • headers

      public ru.tinkoff.kora.http.common.header.HttpHeaders headers()
      Specified by:
      headers in interface ru.tinkoff.kora.http.client.common.response.HttpClientResponse
    • body

      public ru.tinkoff.kora.http.common.body.HttpBodyInput body()
      Specified by:
      body in interface ru.tinkoff.kora.http.client.common.response.HttpClientResponse
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface ru.tinkoff.kora.http.client.common.response.HttpClientResponse
    • toString

      public String toString()
      Overrides:
      toString in class Object