com.stackify.api.common.http
public class HttpClient extends Object
| Constructor and Description |
|---|
HttpClient(ApiConfiguration apiConfig)
Constructor
|
public HttpClient(ApiConfiguration apiConfig)
config - API configurationpublic String post(String path, byte[] jsonBytes) throws IOException, HttpException
path - REST pathjsonBytes - JSON bytesIOExceptionHttpExceptionpublic String post(String path, byte[] jsonBytes, boolean gzip) throws IOException, HttpException
path - REST pathjsonBytes - JSON bytesgzip - True if the post should be gzipped, false otherwiseIOExceptionHttpExceptionCopyright © 2014 Stackify, LLC. All Rights Reserved.