Class StatusLine
- java.lang.Object
-
- com.apollographql.apollo.cache.http.internal.StatusLine
-
public final class StatusLine extends java.lang.ObjectAn HTTP response status line like "HTTP/1.1 200 OK".Copied from OkHttp.
-
-
Field Summary
Fields Modifier and Type Field Description intcodestatic intHTTP_CONTINUEstatic intHTTP_PERM_REDIRECTstatic intHTTP_TEMP_REDIRECTNumeric status code, 307: Temporary Redirect.java.lang.Stringmessageokhttp3.Protocolprotocol
-
Constructor Summary
Constructors Constructor Description StatusLine(okhttp3.Protocol protocol, int code, java.lang.String message)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StatusLineget(okhttp3.Response response)static StatusLineparse(java.lang.String statusLine)java.lang.StringtoString()
-
-
-
Field Detail
-
HTTP_TEMP_REDIRECT
public static final int HTTP_TEMP_REDIRECT
Numeric status code, 307: Temporary Redirect.- See Also:
- Constant Field Values
-
HTTP_PERM_REDIRECT
public static final int HTTP_PERM_REDIRECT
- See Also:
- Constant Field Values
-
HTTP_CONTINUE
public static final int HTTP_CONTINUE
- See Also:
- Constant Field Values
-
protocol
public final okhttp3.Protocol protocol
-
code
public final int code
-
message
public final java.lang.String message
-
-
Method Detail
-
get
public static StatusLine get(okhttp3.Response response)
-
parse
public static StatusLine parse(java.lang.String statusLine) throws java.io.IOException
- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-