HttpClient
uk.gov.hmrc.http.HttpClient
trait HttpClient extends HttpGet, HttpPut, HttpPost, HttpDelete, HttpPatch
Attributes
- Deprecated
- true
- Graph
-
- Supertypes
-
trait HttpPatchtrait PatchHttpTransporttrait CorePatchtrait HttpDeletetrait DeleteHttpTransporttrait CoreDeletetrait HttpPosttrait PostHttpTransporttrait CorePosttrait HttpPuttrait PutHttpTransporttrait CorePuttrait HttpGettrait Retriestrait HttpHookstrait ConnectionTracingtrait HttpVerbtrait Requesttrait GetHttpTransporttrait CoreGetclass Objecttrait Matchableclass AnyShow 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]
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]
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]
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]
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]
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]
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]
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]
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
Attributes
- Inherited from:
- Retries
Attributes
- Inherited from:
- HttpVerb
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
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
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
In this article