StandardWebTestRequest

data class StandardWebTestRequest(val body: String? = null, val followRedirectsEnabled: Boolean? = null, val headers: List<StandardWebTestRequestHeader>? = null, val httpVerb: String? = null, val parseDependentRequestsEnabled: Boolean? = null, val url: String)

Constructors

Link copied to clipboard
constructor(body: String? = null, followRedirectsEnabled: Boolean? = null, headers: List<StandardWebTestRequestHeader>? = null, httpVerb: String? = null, parseDependentRequestsEnabled: Boolean? = null, url: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val body: String? = null

The WebTest request body.

Link copied to clipboard

Should the following of redirects be enabled? Defaults to true.

Link copied to clipboard

One or more header blocks as defined above.

Link copied to clipboard
val httpVerb: String? = null

Which HTTP verb to use for the call. Options are 'GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'HEAD', and 'OPTIONS'. Defaults to GET.

Link copied to clipboard

Should the parsing of dependend requests be enabled? Defaults to true.

Link copied to clipboard
val url: String

The WebTest request URL.