< Back
 

# Packages

-  package root
  Definition Classes
    root
-  package uk
  Definition Classes
    root
-  package gov
  Definition Classes
    uk
-  package hmrc
  Definition Classes
    gov
-  package http
  Definition Classes
    hmrc
-  package controllers
  Definition Classes
    http
-  package hooks
  Definition Classes
    http
-  package logging
  Definition Classes
    http
- AkamaiReputation
- Authorization
- BadGatewayException
- BadRequestException
- ConflictException
- CookieNames
- CoreDelete
- CoreGet
- CorePatch
- CorePost
- CorePut
- DeleteHttpTransport
- ExpectationFailedException
- FailedDependencyException
- ForbiddenException
- ForwardedFor
- GatewayTimeoutException
- GetHttpTransport
- GoneException
- HeaderCarrier
- HeaderNames
- HttpClient
- HttpDelete
- HttpErrorFunctions
- HttpException
- HttpGet
- HttpPatch
- HttpPost
- HttpPut
- HttpReads
- HttpReadsEither
- HttpReadsHttpResponse
- HttpReadsInstances
- HttpReadsJson
- HttpReadsLegacyInstances
- HttpReadsLegacyJson
- HttpReadsLegacyOption
- HttpReadsLegacyRawReads
- HttpReadsOption
- HttpReadsTry
- HttpResponse
- HttpTransport
- HttpVerb
- HttpVerbs
- HttpVersionNotSupportedException
- InsufficientStorageException
- InternalServerException
- JsValidationException
- LengthRequiredException
- LockedException
- LowPriorityHttpReadsJson
- MethodNotAllowedException
- NotAcceptableException
- NotFoundException
- NotImplementedException
- PatchHttpTransport
- PaymentRequiredException
- PostHttpTransport
- PreconditionFailedException
- ProxyAuthenticationRequiredException
- PutHttpTransport
- Request
- RequestChain
- RequestEntityTooLargeException
- RequestId
- RequestRangeNotSatisfiableException
- RequestTimeoutException
- RequestUriTooLongException
- Retries
- ServiceUnavailableException
- SessionId
- SessionKeys
- StringContextOps
- TooManyRequestException
- UnauthorizedException
- UnprocessableEntityException
- UnsupportedMediaTypeException
- Upstream4xxResponse
- Upstream5xxResponse
- UpstreamErrorResponse
- UrlValidationException

t

uk.gov.hmrc.http

# HttpClient 

###

#### trait HttpClient extends HttpGet with HttpPut with HttpPost with HttpDelete with HttpPatch

Linear Supertypes
HttpPatch, PatchHttpTransport, CorePatch, HttpDelete, DeleteHttpTransport, CoreDelete, HttpPost, PostHttpTransport, CorePost, HttpPut, PutHttpTransport, CorePut, HttpGet, Retries, HttpHooks, ConnectionTracing, HttpVerb, Request, GetHttpTransport, CoreGet, AnyRef, Any
 
Ordering

1. Alphabetic
2. By Inheritance

Inherited

1. HttpClient
2. HttpPatch
3. PatchHttpTransport
4. CorePatch
5. HttpDelete
6. DeleteHttpTransport
7. CoreDelete
8. HttpPost
9. PostHttpTransport
10. CorePost
11. HttpPut
12. PutHttpTransport
13. CorePut
14. HttpGet
15. Retries
16. HttpHooks
17. ConnectionTracing
18. HttpVerb
19. Request
20. GetHttpTransport
21. CoreGet
22. AnyRef
23. Any

1. Hide All
2. Show All

Visibility

1. Public
2. All

### Abstract Value Members

1.  abstract def actorSystem: ActorSystem
   Attributes
     protected
   Definition Classes
     Retries
2.  abstract def configuration: Config
   Attributes
     protected
   Definition Classes
     Retries
3.  abstract def doDelete(url: String, headers: Seq[(String, String)] = Seq.empty)(implicit ec: ExecutionContext): Future[HttpResponse]
   Definition Classes
     DeleteHttpTransport
4.  abstract def doEmptyPost[A](url: String, headers: Seq[(String, String)] = Seq.empty)(implicit ec: ExecutionContext): Future[HttpResponse]
   Definition Classes
     PostHttpTransport
5.  abstract def doFormPost(url: String, body: Map[String, Seq[String]], headers: Seq[(String, String)] = Seq.empty)(implicit ec: ExecutionContext): Future[HttpResponse]
   Definition Classes
     PostHttpTransport
6.  abstract def doGet(url: String, headers: Seq[(String, String)] = Seq.empty)(implicit ec: ExecutionContext): Future[HttpResponse]
   Definition Classes
     GetHttpTransport
7.  abstract def doPatch[A](url: String, body: A, headers: Seq[(String, String)] = Seq.empty)(implicit rds: Writes[A], ec: ExecutionContext): Future[HttpResponse]
   Definition Classes
     PatchHttpTransport
8.  abstract def doPost[A](url: String, body: A, headers: Seq[(String, String)] = Seq.empty)(implicit wts: Writes[A], ec: ExecutionContext): Future[HttpResponse]
   Definition Classes
     PostHttpTransport
9.  abstract def doPostString(url: String, body: String, headers: Seq[(String, String)] = Seq.empty)(implicit ec: ExecutionContext): Future[HttpResponse]
   Definition Classes
     PostHttpTransport
10.  abstract def doPut[A](url: String, body: A, headers: Seq[(String, String)] = Seq.empty)(implicit rds: Writes[A], ec: ExecutionContext): Future[HttpResponse]
    Definition Classes
      PutHttpTransport
11.  abstract def doPutString(url: String, body: String, headers: Seq[(String, String)] = Seq.empty)(implicit ec: ExecutionContext): Future[HttpResponse]
    Definition Classes
      PutHttpTransport
12.  abstract val hooks: Seq[HttpHook]
    Definition Classes
      HttpHooks

### Concrete Value Members

1.  final def !=(arg0: Any): Boolean
   Definition Classes
     AnyRef → Any
2.  final def ##(): Int
   Definition Classes
     AnyRef → Any
3.  final def ==(arg0: Any): Boolean
   Definition Classes
     AnyRef → Any
4.  def DELETE[O](url: String, headers: Seq[(String, String)] = Seq.empty)(implicit rds: HttpReads[O], hc: HeaderCarrier, ec: ExecutionContext): Future[O]
   Definition Classes
     HttpDelete → CoreDelete
5.  def DELETE[O](url: URL, headers: Seq[(String, String)])(implicit rds: HttpReads[O], hc: HeaderCarrier, ec: ExecutionContext): Future[O]
   Definition Classes
     CoreDelete
6.  final def DELETE[O](url: URL)(implicit rds: HttpReads[O], hc: HeaderCarrier, ec: ExecutionContext): Future[O]
   Definition Classes
     CoreDelete
7.  def GET[A](url: String, queryParams: Seq[(String, String)], headers: Seq[(String, String)])(implicit rds: HttpReads[A], hc: HeaderCarrier, ec: ExecutionContext): Future[A]
   Definition Classes
     HttpGet → CoreGet
8.  def GET[A](url: URL, headers: Seq[(String, String)])(implicit rds: HttpReads[A], hc: HeaderCarrier, ec: ExecutionContext): Future[A]
   Definition Classes
     CoreGet
9.  final def GET[A](url: URL)(implicit rds: HttpReads[A], hc: HeaderCarrier, ec: ExecutionContext): Future[A]
   Definition Classes
     CoreGet
10.  val NoneRequired: Seq[HttpHook]
    Definition Classes
      HttpHooks
11.  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]
    Definition Classes
      HttpPatch → CorePatch
12.  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]
    Definition Classes
      CorePatch
13.  final def PATCH[I, O](url: URL, body: I)(implicit wts: Writes[I], rds: HttpReads[O], hc: HeaderCarrier, ec: ExecutionContext): Future[O]
    Definition Classes
      CorePatch
14.  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]
    Definition Classes
      HttpPost → CorePost
15.  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]
    Definition Classes
      CorePost
16.  final def POST[I, O](url: URL, body: I)(implicit wts: Writes[I], rds: HttpReads[O], hc: HeaderCarrier, ec: ExecutionContext): Future[O]
    Definition Classes
      CorePost
17.  def POSTEmpty[O](url: String, headers: Seq[(String, String)])(implicit rds: HttpReads[O], hc: HeaderCarrier, ec: ExecutionContext): Future[O]
    Definition Classes
      HttpPost → CorePost
18.  def POSTEmpty[O](url: URL, headers: Seq[(String, String)])(implicit rds: HttpReads[O], hc: HeaderCarrier, ec: ExecutionContext): Future[O]
    Definition Classes
      CorePost
19.  final def POSTEmpty[O](url: URL)(implicit rds: HttpReads[O], hc: HeaderCarrier, ec: ExecutionContext): Future[O]
    Definition Classes
      CorePost
20.  def POSTForm[O](url: String, body: Map[String, Seq[String]], headers: Seq[(String, String)])(implicit rds: HttpReads[O], hc: HeaderCarrier, ec: ExecutionContext): Future[O]
    Definition Classes
      HttpPost → CorePost
21.  def POSTForm[O](url: URL, body: Map[String, Seq[String]], headers: Seq[(String, String)])(implicit rds: HttpReads[O], hc: HeaderCarrier, ec: ExecutionContext): Future[O]
    Definition Classes
      CorePost
22.  final def POSTForm[O](url: URL, body: Map[String, Seq[String]])(implicit rds: HttpReads[O], hc: HeaderCarrier, ec: ExecutionContext): Future[O]
    Definition Classes
      CorePost
23.  def POSTString[O](url: String, body: String, headers: Seq[(String, String)])(implicit rds: HttpReads[O], hc: HeaderCarrier, ec: ExecutionContext): Future[O]
    Definition Classes
      HttpPost → CorePost
24.  def POSTString[O](url: URL, body: String, headers: Seq[(String, String)])(implicit rds: HttpReads[O], hc: HeaderCarrier, ec: ExecutionContext): Future[O]
    Definition Classes
      CorePost
25.  final def POSTString[O](url: URL, body: String)(implicit rds: HttpReads[O], hc: HeaderCarrier, ec: ExecutionContext): Future[O]
    Definition Classes
      CorePost
26.  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]
    Definition Classes
      HttpPut → CorePut
27.  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]
    Definition Classes
      CorePut
28.  final def PUT[I, O](url: URL, body: I)(implicit wts: Writes[I], rds: HttpReads[O], hc: HeaderCarrier, ec: ExecutionContext): Future[O]
    Definition Classes
      CorePut
29.  def PUTString[O](url: String, body: String, headers: Seq[(String, String)])(implicit rds: HttpReads[O], hc: HeaderCarrier, ec: ExecutionContext): Future[O]
    Definition Classes
      HttpPut → CorePut
30.  def PUTString[O](url: URL, body: String, headers: Seq[(String, String)])(implicit rds: HttpReads[O], hc: HeaderCarrier, ec: ExecutionContext): Future[O]
    Definition Classes
      CorePut
31.  final def PUTString[O](url: URL, body: String)(implicit rds: HttpReads[O], hc: HeaderCarrier, ec: ExecutionContext): Future[O]
    Definition Classes
      CorePut
32.  final def asInstanceOf[T0]: T0
    Definition Classes
      Any
33.  def badGatewayMessage(verbName: String, url: String, e: Exception): String
    Definition Classes
      HttpVerb
34.  def clone(): AnyRef
    Attributes
      protected[lang]
    Definition Classes
      AnyRef
    Annotations
      @throws( ... ) @native()
35.  lazy val connectionLogger: Logger
    Definition Classes
      ConnectionTracing
36.  final def eq(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
37.  def equals(arg0: Any): Boolean
    Definition Classes
      AnyRef → Any
38.  def executeHooks(verb: String, url: URL, headers: Seq[(String, String)], body: Option[HookData], responseF: Future[HttpResponse])(implicit hc: HeaderCarrier, ec: ExecutionContext): Unit
    Attributes
      protected
    Definition Classes
      HttpHooks
39.  def finalize(): Unit
    Attributes
      protected[lang]
    Definition Classes
      AnyRef
    Annotations
      @throws( classOf[java.lang.Throwable] )
40.  def formatMessage(ld: LoggingDetails, method: String, uri: String, startAge: Long, message: String): String
    Definition Classes
      ConnectionTracing
41.  def gatewayTimeoutMessage(verbName: String, url: String, e: Exception): String
    Definition Classes
      HttpVerb
42.  final def getClass(): Class[_]
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
43.  def hashCode(): Int
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
44.  final def isInstanceOf[T0]: Boolean
    Definition Classes
      Any
45.  def logResult[A](ld: LoggingDetails, method: String, uri: String, startAge: Long)(result: Try[A]): Unit
    Definition Classes
      ConnectionTracing
46.  def mapErrors(httpMethod: String, url: String, f: Future[HttpResponse])(implicit ec: ExecutionContext): Future[HttpResponse]
    Definition Classes
      HttpVerb
47.  final def ne(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
48.  final def notify(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
49.  final def notifyAll(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
50.  def retry[A](verb: String, url: String)(block: ⇒ Future[A])(implicit ec: ExecutionContext): Future[A]
    Definition Classes
      Retries
51.  final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
      AnyRef
52.  def toString(): String
    Definition Classes
      AnyRef → Any
53.  final def wait(): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
54.  final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
55.  final def wait(arg0: Long): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... ) @native()
56.  def withTracing[T](method: String, uri: String)(body: ⇒ Future[T])(implicit ld: LoggingDetails, ec: ExecutionContext): Future[T]
    Definition Classes
      ConnectionTracing

### Inherited from HttpPatch

### Inherited from PatchHttpTransport

### Inherited from CorePatch

### Inherited from HttpDelete

### Inherited from DeleteHttpTransport

### Inherited from CoreDelete

### Inherited from HttpPost

### Inherited from PostHttpTransport

### Inherited from CorePost

### Inherited from HttpPut

### Inherited from PutHttpTransport

### Inherited from CorePut

### Inherited from HttpGet

### Inherited from Retries

### Inherited from HttpHooks

### Inherited from ConnectionTracing

### Inherited from HttpVerb

### Inherited from Request

### Inherited from GetHttpTransport

### Inherited from CoreGet

### Inherited from AnyRef

### Inherited from Any

### Ungrouped