Class HttpDebugger

java.lang.Object
com.helger.httpclient.HttpDebugger

@Immutable public final class HttpDebugger extends Object
Some debugging for HTTP requests. Currently used in HttpClientManager.
Author:
Philip Helger
  • Method Details

    • isEnabled

      public static boolean isEnabled()
    • setEnabled

      public static void setEnabled(boolean bEnabled)
    • beforeRequest

      public static void beforeRequest(@Nonnull org.apache.hc.core5.http.ClassicHttpRequest aRequest, @Nullable org.apache.hc.core5.http.protocol.HttpContext aHttpContext)
      Call before an invocation
      Parameters:
      aRequest - The request to be executed. May not be null.
      aHttpContext - The special HTTP content for this call. May be null.
    • afterRequest

      public static void afterRequest(@Nonnull org.apache.hc.core5.http.ClassicHttpRequest aRequest, @Nullable Object aResponse, @Nullable Throwable aCaughtException)
      Call after an invocation.
      Parameters:
      aRequest - The source request. May not be modified internally. May not be null.
      aResponse - The response object retrieved. May be anything including null (e.g. in case of exception).
      aCaughtException - The caught exception. May be null.
      Since:
      8.8.2