Java com.squareup.okhttp Response fields, constructors, methods, implement or subclass

Example usage for Java com.squareup.okhttp Response fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.squareup.okhttp Response.

The text is from its open source code.

Field

Requestrequest
Protocolprotocol
intcode
Stringmessage
Handshakehandshake
Headersheaders
ResponseBodybody
ResponsenetworkResponse
ResponsecacheResponse
ResponsepriorResponse
CacheControlcacheControl

Constructor

Method

Listchallenges()
Returns the authorization challenges appropriate for this response's code.
Stringheader(String name)
Stringheader(String name, String defaultValue)
booleanisRedirect()
Returns true if this response redirects to another resource.
booleanisSuccessful()
Returns true if the code is in [200..300), which means the request was successfully received, understood, and accepted.
BuildernewBuilder()
StringtoString()