
com.github.kristofa.test.http.HttpRequestResponseLogger 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;
/**
* Logs a {@link HttpRequest} / {@link HttpResponse} combination. Used with {@link LoggingHttpProxy}.
*
* Each instance of {@link HttpRequestResponseLogger} is responsible for logging 1 request/response.
*
* Request will be logged just before executing request. Response will be logged as soon as response is received. This also
* allows to log of forwarded request.
*
* @see LoggingHttpProxy
* @author kristof
*/
public interface HttpRequestResponseLogger {
/**
* Logs a {@link HttpRequest}.
*
* @param request Request.
*/
void log(HttpRequest request);
/**
* Logs {@link HttpResponse}.
*
* @param response Response.
*/
void log(HttpResponse response);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy