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

com.twitter.finatra.httpclient.RichHttpClient.scala Maven / Gradle / Ivy

There is a newer version: 2.1.6
Show newest version
package com.twitter.finatra.httpclient

import com.twitter.finagle.httpx.{Request, Response}
import com.twitter.finagle.{Httpx, Service}

object RichHttpClient {

  /* Public */

  def newClientService(dest: String): Service[Request, Response] = {
    Httpx.newClient(dest).toService
  }

  def newSslClientService(sslHostname: String, dest: String): Service[Request, Response] = {
    Httpx.client.withTls(sslHostname).newService(dest)
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy