public class OKHttpUtils extends Object
| Constructor and Description |
|---|
OKHttpUtils() |
| Modifier and Type | Method and Description |
|---|---|
static okhttp3.RequestBody |
getEmptyRequestHeader()
Creates an empty RequestBody
|
static String |
getResponseBodyAsString(okhttp3.Response response)
Returns the response body as a string.
|
static String |
gzipDecompresser(InputStream stream)
Extract the stream with GZIP and then returns the resulting string
|
public static String gzipDecompresser(InputStream stream)
stream - the input stream to be extractedpublic static String getResponseBodyAsString(okhttp3.Response response)
response - the response to get get the body frompublic static okhttp3.RequestBody getEmptyRequestHeader()
Copyright © 2020. All rights reserved.