RequestBuilderImpl
uk.gov.hmrc.http.client.RequestBuilderImpl
final class RequestBuilderImpl(config: Configuration, optProxyServer: => Option[WSProxyServer], executor: Executor)(request: WSRequest, hookDataF: Option[Future[Option[Data[HookData]]]])(implicit hc: HeaderCarrier) extends RequestBuilder
Attributes
- Graph
-
- Supertypes
Members list
Value members
Concrete methods
Attributes
- Definition Classes
Adds the header. If the header has already been defined (e.g. from HeaderCarrier), it will be replaced. It does not affect headers not mentioned.
Adds the header. If the header has already been defined (e.g. from HeaderCarrier), it will be replaced. It does not affect headers not mentioned.
Use transform(_.addHttpHeaders) to append header values to existing.
Attributes
- Definition Classes
Attributes
- Definition Classes
Attributes
- Definition Classes
override def withBody[B : Tag](body: B)(implicit evidence$1: BodyWritable[B], evidence$2: Tag[B], ec: ExecutionContext): RequestBuilderImpl
withBody should be called rather than transform(_.withBody). Failure to do so will lead to a runtime exception
withBody should be called rather than transform(_.withBody). Failure to do so will lead to a runtime exception
Attributes
- Definition Classes
Attributes
- Definition Classes
In this article