SDK Common Response Headers
After you call an API in an instance of ObsClient, an instance of the HeaderResponse class (or of its sub-class) will be returned. It contains information about HTTP/HTTPS response headers.
Sample code for processing public response headers:
String endPoint = "https://your-endpoint";
String ak = "*** Provide your Access Key ***";
String sk = "*** Provide your Secret Key ***";
// Create an instance of ObsClient.
ObsClient obsClient = new ObsClient(ak, sk, endPoint);
HeaderResponse response = obsClient.createBucket("bucketname");
// Obtain the UUID from the public response headers.
Log.i("CreateBucket", "\t" + response.getRequestId());
obsClient.close();
Last Article: SDK Custom Exceptions
Next Article: Log Analysis
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.