HttpComponentsClient

org.scalatra.test.HttpComponentsClient

Attributes

Graph
Supertypes
trait Client
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def baseUrl: String

Concrete methods

def createBody(name: String, content: Any): UploadableBody
protected def createClient: CloseableHttpClient
def session[A](f: => A): A
def submit[A](method: String, path: String, queryParams: Iterable[(String, String)], headers: Iterable[(String, String)], body: Array[Byte])(f: => A): A
protected def submitMultipart[A](method: String, path: String, params: Iterable[(String, String)], headers: Iterable[(String, String)], files: Iterable[(String, Any)])(f: => A): A

Inherited methods

def body: String

Attributes

Inherited from:
Client
def bodyBytes: Array[Byte]

Attributes

Inherited from:
Client
def connect[A](uri: String, params: Iterable[(String, String)], headers: Iterable[(String, String)])(f: => A): A

Attributes

Inherited from:
Client
def delete[A](uri: String, params: Iterable[(String, String)], headers: Iterable[(String, String)])(f: => A): A

Attributes

Inherited from:
Client
def get[A](uri: String, params: Iterable[(String, String)], headers: Iterable[(String, String)])(f: => A): A

Attributes

Inherited from:
Client
def get[A](uri: String, params: (String, String)*)(f: => A): A

Attributes

Inherited from:
Client
def head[A](uri: String, params: Iterable[(String, String)], headers: Iterable[(String, String)])(f: => A): A

Attributes

Inherited from:
Client
def head[A](uri: String, params: (String, String)*)(f: => A): A

Attributes

Inherited from:
Client
def header: header.type

Attributes

Inherited from:
Client
def options[A](uri: String, params: Iterable[(String, String)], headers: Iterable[(String, String)])(f: => A): A

Attributes

Inherited from:
Client
def patch[A](uri: String, body: Array[Byte], headers: Iterable[(String, String)])(f: => A): A

Attributes

Inherited from:
Client
def patch[A](uri: String, params: Iterable[(String, String)], headers: Iterable[(String, String)])(f: => A): A

Attributes

Inherited from:
Client
def patch[A](uri: String, params: Iterable[(String, String)])(f: => A): A

Attributes

Inherited from:
Client
def patch[A](uri: String, params: (String, String)*)(f: => A): A

Attributes

Inherited from:
Client
def post[A](uri: String, params: Iterable[(String, String)], files: Iterable[(String, Any)], headers: Iterable[(String, String)])(f: => A): A

Attributes

Inherited from:
Client
def post[A](uri: String, params: Iterable[(String, String)], files: Iterable[(String, Any)])(f: => A): A

Attributes

Inherited from:
Client
def post[A](uri: String, body: Array[Byte], headers: Iterable[(String, String)])(f: => A): A

Attributes

Inherited from:
Client
def post[A](uri: String, params: Iterable[(String, String)], headers: Map[String, String])(f: => A): A

Attributes

Inherited from:
Client
def post[A](uri: String, params: Iterable[(String, String)])(f: => A): A

Attributes

Inherited from:
Client
def post[A](uri: String, params: (String, String)*)(f: => A): A

Attributes

Inherited from:
Client
def put[A](uri: String, params: Iterable[(String, String)], files: Iterable[(String, Any)], headers: Iterable[(String, String)])(f: => A): A

Attributes

Inherited from:
Client
def put[A](uri: String, params: Iterable[(String, String)], files: Iterable[(String, Any)])(f: => A): A

Attributes

Inherited from:
Client
def put[A](uri: String, body: Array[Byte], headers: Iterable[(String, String)])(f: => A): A

Attributes

Inherited from:
Client
def put[A](uri: String, params: Iterable[(String, String)], headers: Map[String, String])(f: => A): A

Attributes

Inherited from:
Client
def put[A](uri: String, params: Iterable[(String, String)])(f: => A): A

Attributes

Inherited from:
Client
def put[A](uri: String, params: (String, String)*)(f: => A): A

Attributes

Inherited from:
Client

Returns the current response within the scope of the submit method.

Returns the current response within the scope of the submit method.

Attributes

Inherited from:
Client
def status: Int

Attributes

Inherited from:
Client
def trace[A](uri: String, params: Iterable[(String, String)], headers: Iterable[(String, String)])(f: => A): A

Attributes

Inherited from:
Client
protected def withResponse[A](res: ClientResponse)(f: => A): A

Attributes

Inherited from:
Client

Concrete fields

protected val httpComponentsRequestConfig: RequestConfig

Can be overridden RequestConfig

Can be overridden RequestConfig

Attributes

Implicits

Inherited implicits

implicit def stringToByteArray(str: String): Array[Byte]

Attributes

Inherited from:
ImplicitConversions