com.github.kristofa.test.http.HttpResponseFileWriter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mock-http-server Show documentation
Show all versions of mock-http-server Show documentation
Mock and Proxy HTTP Server for testing purposes. Forked from https://github.com/jharlap/mock-http-server
package com.github.kristofa.test.http;
import java.io.File;
/**
* Writes a {@link HttpResponse} to file.
*
* @see HttpResponseFileReader
* @author kristof
*/
public interface HttpResponseFileWriter {
/**
* Writes a {@link HttpResponse} to file.
*
* @param response The http response to persist.
* @param httpResponseFile File in which all http response properties will be stored except entity.
* @param httpResponseEntityFile File in which http response entity will be stored. Entity is optional. If http response
* does not have entity this file will not be created.
*/
void write(final HttpResponse response, final File httpResponseFile, final File httpResponseEntityFile);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy