HttpClient

uk.gov.hmrc.http.HttpClient

Attributes

Deprecated
true
Graph
Supertypes
trait HttpPatch
trait CorePatch
trait HttpDelete
trait CoreDelete
trait HttpPost
trait CorePost
trait HttpPut
trait CorePut
trait HttpGet
trait Retries
trait HttpHooks
trait HttpVerb
trait Request
trait CoreGet
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

override def DELETE[O](url: String, headers: Seq[(String, String)])(implicit rds: HttpReads[O], hc: HeaderCarrier, ec: ExecutionContext): Future[O]

Attributes

Definition Classes
Inherited from:
HttpDelete
def DELETE[O](url: URL, headers: Seq[(String, String)])(implicit rds: HttpReads[O], hc: HeaderCarrier, ec: ExecutionContext): Future[O]

Attributes

Inherited from:
CoreDelete
final def DELETE[O](url: URL)(implicit rds: HttpReads[O], hc: HeaderCarrier, ec: ExecutionContext): Future[O]

Attributes

Inherited from:
CoreDelete
override def GET[A](url: String, queryParams: Seq[(String, String)], headers: Seq[(String, String)])(implicit rds: HttpReads[A], hc: HeaderCarrier, ec: ExecutionContext): Future[A]

Attributes

Definition Classes
Inherited from:
HttpGet
def GET[A](url: URL, headers: Seq[(String, String)])(implicit rds: HttpReads[A], hc: HeaderCarrier, ec: ExecutionContext): Future[A]

Attributes

Inherited from:
CoreGet
final def GET[A](url: URL)(implicit rds: HttpReads[A], hc: HeaderCarrier, ec: ExecutionContext): Future[A]

Attributes

Inherited from:
CoreGet
override def PATCH[I, O](url: String, body: I, headers: Seq[(String, String)])(implicit wts: Writes[I], rds: HttpReads[O], hc: HeaderCarrier, ec: ExecutionContext): Future[O]

Attributes

Definition Classes
Inherited from:
HttpPatch
def PATCH[I, O](url: URL, body: I, headers: Seq[(String, String)])(implicit wts: Writes[I], rds: HttpReads[O], hc: HeaderCarrier, ec: ExecutionContext): Future[O]

Attributes

Inherited from:
CorePatch
final def PATCH[I, O](url: URL, body: I)(implicit wts: Writes[I], rds: HttpReads[O], hc: HeaderCarrier, ec: ExecutionContext): Future[O]

Attributes

Inherited from:
CorePatch
override def POST[I, O](url: String, body: I, headers: Seq[(String, String)])(implicit wts: Writes[I], rds: HttpReads[O], hc: HeaderCarrier, ec: ExecutionContext): Future[O]

Attributes

Definition Classes
Inherited from:
HttpPost
def POST[I, O](url: URL, body: I, headers: Seq[(String, String)])(implicit wts: Writes[I], rds: HttpReads[O], hc: HeaderCarrier, ec: ExecutionContext): Future[O]

Attributes

Inherited from:
CorePost
final def POST[I, O](url: URL, body: I)(implicit wts: Writes[I], rds: HttpReads[O], hc: HeaderCarrier, ec: ExecutionContext): Future[O]

Attributes

Inherited from:
CorePost
override def POSTEmpty[O](url: String, headers: Seq[(String, String)])(implicit rds: HttpReads[O], hc: HeaderCarrier, ec: ExecutionContext): Future[O]

Attributes

Definition Classes
Inherited from:
HttpPost
def POSTEmpty[O](url: URL, headers: Seq[(String, String)])(implicit rds: HttpReads[O], hc: HeaderCarrier, ec: ExecutionContext): Future[O]

Attributes

Inherited from:
CorePost
final def POSTEmpty[O](url: URL)(implicit rds: HttpReads[O], hc: HeaderCarrier, ec: ExecutionContext): Future[O]

Attributes

Inherited from:
CorePost
override def POSTForm[O](url: String, body: Map[String, Seq[String]], headers: Seq[(String, String)])(implicit rds: HttpReads[O], hc: HeaderCarrier, ec: ExecutionContext): Future[O]

Attributes

Definition Classes
Inherited from:
HttpPost
def POSTForm[O](url: URL, body: Map[String, Seq[String]], headers: Seq[(String, String)])(implicit rds: HttpReads[O], hc: HeaderCarrier, ec: ExecutionContext): Future[O]

Attributes

Inherited from:
CorePost
final def POSTForm[O](url: URL, body: Map[String, Seq[String]])(implicit rds: HttpReads[O], hc: HeaderCarrier, ec: ExecutionContext): Future[O]

Attributes

Inherited from:
CorePost
override def POSTString[O](url: String, body: String, headers: Seq[(String, String)])(implicit rds: HttpReads[O], hc: HeaderCarrier, ec: ExecutionContext): Future[O]

Attributes

Definition Classes
Inherited from:
HttpPost
def POSTString[O](url: URL, body: String, headers: Seq[(String, String)])(implicit rds: HttpReads[O], hc: HeaderCarrier, ec: ExecutionContext): Future[O]

Attributes

Inherited from:
CorePost
final def POSTString[O](url: URL, body: String)(implicit rds: HttpReads[O], hc: HeaderCarrier, ec: ExecutionContext): Future[O]

Attributes

Inherited from:
CorePost
override def PUT[I, O](url: String, body: I, headers: Seq[(String, String)])(implicit wts: Writes[I], rds: HttpReads[O], hc: HeaderCarrier, ec: ExecutionContext): Future[O]

Attributes

Definition Classes
Inherited from:
HttpPut
def PUT[I, O](url: URL, body: I, headers: Seq[(String, String)])(implicit wts: Writes[I], rds: HttpReads[O], hc: HeaderCarrier, ec: ExecutionContext): Future[O]

Attributes

Inherited from:
CorePut
final def PUT[I, O](url: URL, body: I)(implicit wts: Writes[I], rds: HttpReads[O], hc: HeaderCarrier, ec: ExecutionContext): Future[O]

Attributes

Inherited from:
CorePut
override def PUTString[O](url: String, body: String, headers: Seq[(String, String)])(implicit rds: HttpReads[O], hc: HeaderCarrier, ec: ExecutionContext): Future[O]

Attributes

Definition Classes
Inherited from:
HttpPut
def PUTString[O](url: URL, body: String, headers: Seq[(String, String)])(implicit rds: HttpReads[O], hc: HeaderCarrier, ec: ExecutionContext): Future[O]

Attributes

Inherited from:
CorePut
final def PUTString[O](url: URL, body: String)(implicit rds: HttpReads[O], hc: HeaderCarrier, ec: ExecutionContext): Future[O]

Attributes

Inherited from:
CorePut
def badGatewayMessage(verbName: String, url: String, e: Exception): String

Attributes

Inherited from:
HttpVerb
protected def executeHooks(verb: String, url: URL, request: RequestData, responseF: Future[ResponseData])(implicit hc: HeaderCarrier, ec: ExecutionContext): Unit

Attributes

Inherited from:
HttpHooks
def formatMessage(ld: LoggingDetails, method: String, uri: String, startAge: Long, message: String): String

Attributes

Inherited from:
ConnectionTracing
def gatewayTimeoutMessage(verbName: String, url: String, e: Exception): String

Attributes

Inherited from:
HttpVerb
def logResult[A](ld: LoggingDetails, method: String, uri: String, startAge: Long)(result: Try[A]): Unit

Attributes

Inherited from:
ConnectionTracing
def mapErrors(httpMethod: String, url: String, f: Future[HttpResponse])(implicit ec: ExecutionContext): Future[HttpResponse]

Attributes

Inherited from:
HttpVerb
def retryFor[A](label: String)(condition: PartialFunction[Exception, Boolean])(block: => Future[A])(implicit ec: ExecutionContext): Future[A]

Attributes

Inherited from:
Retries
def retryOnSslEngineClosed[A](verb: String, url: String)(block: => Future[A])(implicit ec: ExecutionContext): Future[A]

Attributes

Inherited from:
Retries
def withTracing[T](method: String, uri: String)(body: => Future[T])(implicit ld: LoggingDetails, ec: ExecutionContext): Future[T]

Attributes

Inherited from:
ConnectionTracing

Inherited and Abstract methods

protected def actorSystem: ActorSystem

Attributes

Inherited from:
Retries
protected def configuration: Config

Attributes

Inherited from:
Retries
def doDelete(url: String, headers: Seq[(String, String)])(implicit ec: ExecutionContext): Future[HttpResponse]

Attributes

Inherited from:
DeleteHttpTransport
def doEmptyPost[A](url: String, headers: Seq[(String, String)])(implicit ec: ExecutionContext): Future[HttpResponse]

Attributes

Inherited from:
PostHttpTransport
def doFormPost(url: String, body: Map[String, Seq[String]], headers: Seq[(String, String)])(implicit ec: ExecutionContext): Future[HttpResponse]

Attributes

Inherited from:
PostHttpTransport
def doGet(url: String, headers: Seq[(String, String)])(implicit ec: ExecutionContext): Future[HttpResponse]

Attributes

Inherited from:
GetHttpTransport
def doPatch[A](url: String, body: A, headers: Seq[(String, String)])(implicit rds: Writes[A], ec: ExecutionContext): Future[HttpResponse]

Attributes

Inherited from:
PatchHttpTransport
def doPost[A](url: String, body: A, headers: Seq[(String, String)])(implicit wts: Writes[A], ec: ExecutionContext): Future[HttpResponse]

Attributes

Inherited from:
PostHttpTransport
def doPostString(url: String, body: String, headers: Seq[(String, String)])(implicit ec: ExecutionContext): Future[HttpResponse]

Attributes

Inherited from:
PostHttpTransport
def doPut[A](url: String, body: A, headers: Seq[(String, String)])(implicit rds: Writes[A], ec: ExecutionContext): Future[HttpResponse]

Attributes

Inherited from:
PutHttpTransport
def doPutString(url: String, body: String, headers: Seq[(String, String)])(implicit ec: ExecutionContext): Future[HttpResponse]

Attributes

Inherited from:
PutHttpTransport

Deprecated and Inherited methods

def retry[A](verb: String, url: String)(block: => Future[A])(implicit ec: ExecutionContext): Future[A]

Attributes

Deprecated
true
Inherited from:
Retries

Inherited fields

val NoneRequired: Seq[Nothing]

Attributes

Inherited from:
HttpHooks
lazy val connectionLogger: Logger

Attributes

Inherited from:
ConnectionTracing

Inherited and Abstract fields

val hooks: Seq[HttpHook]

Attributes

Inherited from:
HttpHooks