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 Stringheader(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.key is case-insensitive as defined in RFC 2616.
- Parameters:
key- The header key/name for which to provide the values.- Returns:
- the List of header values for the provided key.
- See Also:
- RFC 2616 Section 4.2
-
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.
-
-