Body Spec Builder
Configures request body matching inside RequestSpecificationBuilder.body.
Example:
body {
form {
field("user", "alice")
file("avatar") { filename { it?.endsWith(".png") == true } }
}
bytes { it?.isNotEmpty() == true }
}Content copied to clipboard
Functions
Link copied to clipboard
Requires the request body content type to satisfy matcher.
Requires the request body content type to equal contentType.
Link copied to clipboard
Matches an HTML form body.
Link copied to clipboard
Matches a multipart request by ContentType.
Matches a multipart request by content type string, such as "multipart/mixed".