class HttpClientHandler extends HttpHandler {

  @Deprecated
  public void handleReceive(@Nullable Resp response, @Nullable Throwable error, Span span) {
    if (span == null) throw new NullPointerException("span == null");
    if (response == null && error == null) {
      throw new IllegalArgumentException(
        "Either the response or error parameters may be null, but not both");
    }

    if (response == null) {
      span.error(error).finish();
      return;
    }

    HttpClientResponse clientResponse;
    if (response instanceof HttpClientResponse) {
      clientResponse = (HttpClientResponse) response;
      if (clientResponse.error() == null && error != null) {
        span.error(error);
      }
    } else {
      clientResponse = new FromResponseAdapter<>(adapter, response, error);
    }
    handleFinish(clientResponse, span);
  }

    HttpClientHandler(HttpTracing httpTracing, @Deprecated HttpClientAdapter<Req, Resp> adapter);

}