All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.kristofa.test.http.HttpRequestResponseLogger Maven / Gradle / Ivy

Go to download

Mock and Proxy HTTP Server for testing purposes. Forked from https://github.com/jharlap/mock-http-server

There is a newer version: 4.1
Show newest version
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