Package org.zalando.logbook
Class CurlHttpLogFormatter
- java.lang.Object
-
- org.zalando.logbook.CurlHttpLogFormatter
-
- All Implemented Interfaces:
HttpLogFormatter
@API(status=EXPERIMENTAL) public final class CurlHttpLogFormatter extends Object implements HttpLogFormatter
Formats requests as cURL commands.
-
-
Constructor Summary
Constructors Constructor Description CurlHttpLogFormatter()
CurlHttpLogFormatter(HttpLogFormatter fallback)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
format(Correlation correlation, HttpResponse response)
String
format(Precorrelation precorrelation, HttpRequest request)
-
-
-
Constructor Detail
-
CurlHttpLogFormatter
public CurlHttpLogFormatter()
-
CurlHttpLogFormatter
public CurlHttpLogFormatter(HttpLogFormatter fallback)
-
-
Method Detail
-
format
public String format(Precorrelation precorrelation, HttpRequest request) throws IOException
- Specified by:
format
in interfaceHttpLogFormatter
- Throws:
IOException
-
format
public String format(Correlation correlation, HttpResponse response) throws IOException
- Specified by:
format
in interfaceHttpLogFormatter
- Throws:
IOException
-
-