Interface HttpHeaders
-
- All Known Subinterfaces:
HttpRequest
,HttpResponse<T>
- All Known Implementing Classes:
StandardHttpHeaders
,StandardHttpRequest
,WebSocketUpgradeResponse
public interface HttpHeaders
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default String
header(String key)
Return the header as a single string valueMap<String,List<String>>
headers()
Returns a Map containing a list of String values for each Header.List<String>
headers(String key)
Returns a List of all the Header String values for the provided key/name.
-
-
-
Method Detail
-
headers
List<String> headers(String key)
Returns a List of all the Header String values for the provided key/name.- Parameters:
key
- The header key/name for which to provide the values.- Returns:
- the List of header values for the provided key.
-
headers
Map<String,List<String>> headers()
Returns a Map containing a list of String values for each Header.- Returns:
- the Map of Headers and their list of values.
-
-