com.ephox.editlive.custom
Class HTTPHeaders
java.lang.Object
com.ephox.editlive.custom.HTTPHeaders
public class HTTPHeaders
- extends Object
This class is used to manage a list of HTTP request headers for HTTPRequestCallback
instances.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HTTPHeaders
public HTTPHeaders()
addRequestHeader
public void addRequestHeader(String headerName,
String headerValue)
- Add the specified request header. Does not overwrite any previous value.
Note that header-name matching is case insensitive.
- Parameters:
headerName
- the header's nameheaderValue
- the header's value
getHeaders
public List<String[]> getHeaders()
- Returns the the header List. This list should not be modified directly.
- Returns:
- returns a List containing the headers. Each header is stored as an Array {headerName, headerValue}