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

com.riskalyze.alerts.http.HttpClient.kt Maven / Gradle / Ivy

Go to download

This alerts module is used to standardize alerting for JVM-based application. It uses a modular driver system to allow easily swapping out alerting services.

The newest version!
package com.riskalyze.alerts.http

import com.google.gson.FieldNamingPolicy
import java.util.concurrent.CompletableFuture
import java.util.concurrent.TimeUnit
import kotlin.reflect.KClass

internal interface HttpClient {

    var baseUrl: String?

    fun setConnectTimeout(timeout: Long, unit: TimeUnit)

    fun setHeader(key: String, value: String)

    fun setNamingPolicy(policy: FieldNamingPolicy)

    fun post(uri: String, payload: DTO): CompletableFuture

    fun  post(uri: String, payload: DTO, responseType: KClass): CompletableFuture

    fun  post(uri: String, responseType: KClass): CompletableFuture

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy