Class StandardHttpHeaders
- java.lang.Object
-
- io.fabric8.kubernetes.client.http.StandardHttpHeaders
-
- All Implemented Interfaces:
HttpHeaders
- Direct Known Subclasses:
StandardHttpRequest,WebSocketUpgradeResponse
public class StandardHttpHeaders extends Object implements HttpHeaders
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONTENT_LENGTHstatic StringCONTENT_TYPEstatic StringEXPECTstatic StringEXPECT_CONTINUEstatic StringPROXY_AUTHORIZATIONstatic StringRETRY_AFTER
-
Constructor Summary
Constructors Constructor Description StandardHttpHeaders()StandardHttpHeaders(Map<String,List<String>> headers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<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.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.fabric8.kubernetes.client.http.HttpHeaders
header
-
-
-
-
Field Detail
-
CONTENT_TYPE
public static final String CONTENT_TYPE
- See Also:
- Constant Field Values
-
CONTENT_LENGTH
public static final String CONTENT_LENGTH
- See Also:
- Constant Field Values
-
EXPECT
public static final String EXPECT
- See Also:
- Constant Field Values
-
EXPECT_CONTINUE
public static final String EXPECT_CONTINUE
- See Also:
- Constant Field Values
-
RETRY_AFTER
public static final String RETRY_AFTER
- See Also:
- Constant Field Values
-
PROXY_AUTHORIZATION
public static final String PROXY_AUTHORIZATION
- See Also:
- Constant Field Values
-
-
Method Detail
-
headers
public List<String> headers(String key)
Description copied from interface:HttpHeadersReturns a List of all the Header String values for the provided key/name.key is case-insensitive as defined in RFC 2616.
- Specified by:
headersin interfaceHttpHeaders- 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
public Map<String,List<String>> headers()
Description copied from interface:HttpHeadersReturns a Map containing a list of String values for each Header.- Specified by:
headersin interfaceHttpHeaders- Returns:
- the Map of Headers and their list of values.
-
-