com.ephox.editlive.custom
Interface HTTPRequestCallback
- public interface HTTPRequestCallback
getRequestHeaders
public HTTPHeaders getRequestHeaders(String filePath)
- Returns an array of HttpHeaders which should be added to the request being
sent to the given file path.
- Parameters:
filePath - path for the file about to be uploaded.
setResponse
public void setResponse(HTTPHeaders headers,
String body)
- Receives the response (even if the upload failed)
- Parameters:
headers - a copy of the headers returned by the serverbody - a copy of the body returned by the server