Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.github.kristofa.test.http;

Logs a HttpRequest / HttpResponse combination. Used with LoggingHttpProxy.

Each instance of 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.

Author(s):
kristof
See also:
LoggingHttpProxy
public interface HttpRequestResponseLogger {

    
Logs a HttpRequest.

Parameters:
request Request.
    void log(HttpRequest request);

    
Logs HttpResponse.

Parameters:
response Response.
    void log(HttpResponse response);
New to GrepCode? Check out our FAQ X