public interface HttpMessage
Modifier and Type | Method and Description |
---|---|
<T> T |
getBodyAsType(Class<T> clazz)
Retrieves the body information of the HTTP message as a particular type.
|
String |
getHeader(String key)
Gets the specific header if it exists.
|
Map<String,List<String>> |
getHeaders()
Get the headers.
|
String getHeader(String key)
key
- The key to find the header value under<T> T getBodyAsType(Class<T> clazz)
T
- The type of the classclazz
- The class