case class Req(run: (RequestBuilder) ⇒ RequestBuilder, props: Properties = Req.Properties()) extends MethodVerbs with UrlVerbs with ParamVerbs with AuthVerbs with HeaderVerbs with RequestBuilderVerbs with Product with Serializable
This wrapper provides referential transparency for the underlying RequestBuilder.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Req
- Serializable
- Serializable
- Product
- Equals
- RequestBuilderVerbs
- HeaderVerbs
- AuthVerbs
- ParamVerbs
- UrlVerbs
- MethodVerbs
- RequestVerbs
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new Req(run: (RequestBuilder) ⇒ RequestBuilder, props: Properties = Req.Properties())
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
/(segment: AnyVal): Req
- Definition Classes
- UrlVerbs
-
def
/(segment: String): Req
- Definition Classes
- UrlVerbs
-
def
/?(segmentOpt: Option[String]): Req
- Definition Classes
- UrlVerbs
-
def
<:<(hs: Traversable[(String, String)]): Req
- Definition Classes
- HeaderVerbs
-
def
<<(body: String): Req
Set request body to a given string,
Set request body to a given string,
- set method to POST if currently GET,
- set HTTP Content-Type to "text/plain; charset=UTF-8" if unspecified.
- Definition Classes
- ParamVerbs
-
def
<<(params: Traversable[(String, String)]): Req
Adds
params
to the request body.Adds
params
to the request body. Sets request method to POST if it is currently GET.- Definition Classes
- ParamVerbs
-
def
<<<(file: File): Req
Set a file as the request body and set method to PUT if it's currently GET.
Set a file as the request body and set method to PUT if it's currently GET.
- Definition Classes
- ParamVerbs
-
def
<<?(params: Traversable[(String, String)]): Req
Adds
params
as query parametersAdds
params
as query parameters- Definition Classes
- ParamVerbs
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
DELETE: Req
- Definition Classes
- MethodVerbs
-
def
GET: Req
- Definition Classes
- MethodVerbs
-
def
HEAD: Req
- Definition Classes
- MethodVerbs
-
def
OPTIONS: Req
- Definition Classes
- MethodVerbs
-
def
PATCH: Req
- Definition Classes
- MethodVerbs
-
def
POST: Req
- Definition Classes
- MethodVerbs
-
def
PUT: Req
- Definition Classes
- MethodVerbs
-
def
TRACE: Req
- Definition Classes
- MethodVerbs
-
def
addBodyPart(part: Part): Req
- Definition Classes
- RequestBuilderVerbs
-
def
addCookie(cookie: Cookie): Req
- Definition Classes
- RequestBuilderVerbs
-
def
addHeader(name: String, value: String): Req
- Definition Classes
- RequestBuilderVerbs
-
def
addOrReplaceCookie(cookie: Cookie): Req
- Definition Classes
- RequestBuilderVerbs
-
def
addParameter(key: String, value: String): Req
- Definition Classes
- RequestBuilderVerbs
-
def
addQueryParameter(name: String, value: String): Req
- Definition Classes
- RequestBuilderVerbs
-
def
as(realm: Realm): Req
- Definition Classes
- AuthVerbs
-
def
as(user: String, password: String): Req
- Definition Classes
- AuthVerbs
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
as_!(user: String, password: String): Req
Basic auth, use with care.
Basic auth, use with care.
- Definition Classes
- AuthVerbs
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- val props: Properties
- val run: (RequestBuilder) ⇒ RequestBuilder
-
def
secure: Req
- Definition Classes
- UrlVerbs
-
def
setBody(file: File): Req
- Definition Classes
- RequestBuilderVerbs
-
def
setBody(data: String): Req
- Definition Classes
- RequestBuilderVerbs
-
def
setBody(dataWriter: BodyGenerator): Req
- Definition Classes
- RequestBuilderVerbs
-
def
setBody(dataWriter: BodyGenerator, length: Long): Req
- Definition Classes
- RequestBuilderVerbs
-
def
setBody(data: Array[Byte]): Req
- Definition Classes
- RequestBuilderVerbs
-
def
setBodyEncoding(charset: Charset): Req
- Definition Classes
- RequestBuilderVerbs
-
def
setContentType(mediaType: String, charset: Charset): Req
- Definition Classes
- RequestBuilderVerbs
-
def
setFollowRedirects(followRedirects: Boolean): Req
- Definition Classes
- RequestBuilderVerbs
-
def
setHeader(name: String, value: String): Req
- Definition Classes
- RequestBuilderVerbs
-
def
setHeaders(headers: Map[String, Seq[String]]): Req
- Definition Classes
- RequestBuilderVerbs
-
def
setMethod(method: String): Req
- Definition Classes
- RequestBuilderVerbs
-
def
setParameters(parameters: Map[String, Seq[String]]): Req
- Definition Classes
- RequestBuilderVerbs
-
def
setProxyServer(proxyServer: ProxyServer): Req
- Definition Classes
- RequestBuilderVerbs
-
def
setQueryParameters(params: Map[String, Seq[String]]): Req
- Definition Classes
- RequestBuilderVerbs
-
def
setRealm(realm: Realm): Req
- Definition Classes
- RequestBuilderVerbs
-
def
setUrl(url: String): Req
- Definition Classes
- RequestBuilderVerbs
-
def
setVirtualHost(virtualHost: String): Req
- Definition Classes
- RequestBuilderVerbs
-
def
subject: Req
- Definition Classes
- Req → RequestVerbs
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- def toRequest: Request
- def toRequestBuilder: RequestBuilder
- def underlying(nextReq: (RequestBuilder) ⇒ RequestBuilder, nextProps: (Properties) ⇒ Properties): Req
- def underlying(next: (RequestBuilder) ⇒ RequestBuilder): Req
-
def
url: String
- Definition Classes
- UrlVerbs
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
build(): Request
- Definition Classes
- RequestBuilderVerbs
- Annotations
- @deprecated
- Deprecated
(Since version 0.11.0) Use
toRequest