< 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
- BadGatewayException
- BadRequestException
- ConflictException
- CookieNames
- CoreDelete
- CoreGet
- CorePatch
- CorePost
- CorePut
- DeleteHttpTransport
- ExpectationFailedException
- FailedDependencyException
- ForbiddenException
- GatewayTimeoutException
- GetHttpTransport
- GoneException
- HeaderCarrier
- HeaderNames
- HeaderProvider
- 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
- RequestEntityTooLargeException
- RequestRangeNotSatisfiableException
- RequestTimeoutException
- RequestUriTooLongException
- Retries
- ServiceUnavailableException
- SessionKeys
- Token
- TooManyRequestException
- UnauthorizedException
- UnprocessableEntityException
- UnsupportedMediaTypeException
- Upstream4xxResponse
- Upstream5xxResponse
- UpstreamErrorResponse
- UrlValidationException
- UserId

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: Option[Config]
   Attributes
     protected
   Definition Classes
     Retries
3.  abstract def doDelete(url: String, headers: Seq[(String, String)] = Seq.empty)(implicit hc: HeaderCarrier, ec: ExecutionContext): Future[HttpResponse]
   Definition Classes
     DeleteHttpTransport
4.  abstract def doEmptyPost[A](url: String, headers: Seq[(String, String)] = Seq.empty)(implicit hc: HeaderCarrier, 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 hc: HeaderCarrier, ec: ExecutionContext): Future[HttpResponse]
   Definition Classes
     PostHttpTransport
6.  abstract def doGet(url: String, headers: Seq[(String, String)] = Seq.empty)(implicit hc: HeaderCarrier, 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], hc: HeaderCarrier, 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], hc: HeaderCarrier, ec: ExecutionContext): Future[HttpResponse]
   Definition Classes
     PostHttpTransport
9.  abstract def doPostString(url: String, body: String, headers: Seq[(String, String)] = Seq.empty)(implicit hc: HeaderCarrier, 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], hc: HeaderCarrier, ec: ExecutionContext): Future[HttpResponse]
    Definition Classes
      PutHttpTransport
11.  abstract def doPutString(url: String, body: String, headers: Seq[(String, String)] = Seq.empty)(implicit hc: HeaderCarrier, 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 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
6.  def GET[A](url: String, queryParams: Seq[(String, String)])(implicit rds: HttpReads[A], hc: HeaderCarrier, ec: ExecutionContext): Future[A]
   Definition Classes
     CoreGet
7.  def GET[A](url: String)(implicit rds: HttpReads[A], hc: HeaderCarrier, ec: ExecutionContext): Future[A]
   Definition Classes
     CoreGet
8.  val NoneRequired: Seq[HttpHook]
   Definition Classes
     HttpHooks
9.  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
10.  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
11.  def POSTEmpty[O](url: String, headers: Seq[(String, String)])(implicit rds: HttpReads[O], hc: HeaderCarrier, ec: ExecutionContext): Future[O]
    Definition Classes
      HttpPost → CorePost
12.  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
13.  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
14.  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
15.  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
16.  def applicableHeaders(url: String)(implicit hc: HeaderCarrier): Seq[(String, String)]
    Definition Classes
      HttpVerb → Request
17.  final def asInstanceOf[T0]: T0
    Definition Classes
      Any
18.  def badGatewayMessage(verbName: String, url: String, e: Exception): String
    Definition Classes
      HttpVerb
19.  def clone(): AnyRef
    Attributes
      protected[java.lang]
    Definition Classes
      AnyRef
    Annotations
      @native() @throws( ... )
20.  lazy val connectionLogger: Logger
    Definition Classes
      ConnectionTracing
21.  final def eq(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
22.  def equals(arg0: Any): Boolean
    Definition Classes
      AnyRef → Any
23.  def executeHooks(url: String, verb: String, body: Option[HookData], responseF: Future[HttpResponse])(implicit hc: HeaderCarrier, ec: ExecutionContext): Unit
    Attributes
      protected
    Definition Classes
      HttpHooks
24.  def finalize(): Unit
    Attributes
      protected[java.lang]
    Definition Classes
      AnyRef
    Annotations
      @throws( classOf[java.lang.Throwable] )
25.  def formatMessage(ld: LoggingDetails, method: String, uri: String, startAge: Long, message: String): String
    Definition Classes
      ConnectionTracing
26.  def gatewayTimeoutMessage(verbName: String, url: String, e: Exception): String
    Definition Classes
      HttpVerb
27.  final def getClass(): Class[_]
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
28.  def hashCode(): Int
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
29.  lazy val internalHostPatterns: Seq[Regex]
    Definition Classes
      HttpVerb
30.  final def isInstanceOf[T0]: Boolean
    Definition Classes
      Any
31.  def logResult[A](ld: LoggingDetails, method: String, uri: String, startAge: Long)(result: Try[A]): Unit
    Definition Classes
      ConnectionTracing
32.  def mapErrors(httpMethod: String, url: String, f: Future[HttpResponse])(implicit ec: ExecutionContext): Future[HttpResponse]
    Definition Classes
      HttpVerb
33.  final def ne(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
34.  final def notify(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
35.  final def notifyAll(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
36.  def retry[A](verb: String, url: String)(block: ⇒ Future[A])(implicit ec: ExecutionContext): Future[A]
    Definition Classes
      Retries
37.  final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
      AnyRef
38.  def toString(): String
    Definition Classes
      AnyRef → Any
39.  lazy val userAgentHeader: Seq[(String, String)]
    Definition Classes
      HttpVerb
40.  final def wait(): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
41.  final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
42.  final def wait(arg0: Long): Unit
    Definition Classes
      AnyRef
    Annotations
      @native() @throws( ... )
43.  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