request

fun MockMvc.request(method: HttpMethod, urlTemplate: String, vararg vars: Any?, dsl: MockHttpServletRequestDsl.() -> Unit = {}): ResultActionsDsl
fun MockMvc.request(method: HttpMethod, uri: URI, dsl: MockHttpServletRequestDsl.() -> Unit = {}): ResultActionsDsl

MockMvc extension providing access to MockHttpServletRequestDsl Kotlin DSL.

Author

Sebastien Deleuze

Since

5.2

See also

MockMvcRequestBuilders.request