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
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def execute[A](implicit r: HttpReads[A], ec: ExecutionContext): Future[A]

Attributes

Definition Classes
override def setHeader(header: (String, String)*): RequestBuilderImpl

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
override def stream[A](implicit r: StreamHttpReads[A], ec: ExecutionContext): Future[A]

Attributes

Definition Classes
override def transform(transform: WSRequest => WSRequest): RequestBuilderImpl

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