Interface ApicurioHttpClient

  • All Superinterfaces:
    AutoCloseable

    public interface ApicurioHttpClient
    extends AutoCloseable
    Common interface for http client implementations
    • Method Detail

      • sendRequest

        <T> T sendRequest​(Request<T> request)
        Type Parameters:
        T - The type of the param to be returned
        Parameters:
        request - The request to be executed
        Returns:
        The response from the client
      • setNextRequestHeaders

        void setNextRequestHeaders​(Map<String,​String> headers)
        Parameters:
        headers - the request headers to be used in the next request
      • getHeaders

        Map<String,​String> getHeaders()
        Returns:
        The current map with the request headers
      • close

        void close()
        close the underlying http client
        Specified by:
        close in interface AutoCloseable