public class Response
extends java.lang.Object
implements java.io.Serializable
构造器和说明 |
---|
Response(java.util.Map<java.lang.String,java.lang.String> headers)
Construct the base response body with http headers
|
限定符和类型 | 方法和说明 |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
GetAllHeaders()
Get all http headers
|
java.lang.String |
GetHeader(java.lang.String key)
Get the value of a key in the http response header, if the key is not
found, it will return empty
|
java.lang.String |
GetRequestId()
Get the request id of the response
|
public Response(java.util.Map<java.lang.String,java.lang.String> headers)
headers
- http headerspublic java.lang.String GetRequestId()
public java.lang.String GetHeader(java.lang.String key)
key
- key namepublic java.util.Map<java.lang.String,java.lang.String> GetAllHeaders()