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

io.opentelemetry.instrumentation.testing.junit.http.SingleConnection Maven / Gradle / Ivy

There is a newer version: 2.10.0-alpha
Show newest version
/*
 * Copyright The OpenTelemetry Authors
 * SPDX-License-Identifier: Apache-2.0
 */

package io.opentelemetry.instrumentation.testing.junit.http;

import java.util.Map;

/**
 * Helper class for http client tests which require a single connection.
 *
 * 

Tests for specific library should provide an implementation which satisfies the following * conditions: * *

    *
  • Has a constructor which accepts target host and port *
  • For a given instance all invocations of {@link #doRequest(String, Map)} will reuse the same * underlying connection to target host. *
*/ public interface SingleConnection { String REQUEST_ID_HEADER = "test-request-id"; int doRequest(String path, Map headers) throws Exception; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy