Package ratpack.test.http
Interface MultipartFormSpec
-
public interface MultipartFormSpec
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MultipartFormSpec
field(String name, String value)
Add a field to the multipart form.MultipartFileSpec
file()
A specification of a file to upload (see RFC2388).
-
-
-
Method Detail
-
field
MultipartFormSpec field(String name, String value)
Add a field to the multipart form.Note: Can be called multiple times to associate more than one value with a given field.
- Parameters:
name
- the field namevalue
- the field value- Returns:
- a specification of a multipart form
-
file
MultipartFileSpec file()
A specification of a file to upload (see RFC2388).Can be used to construct a multipart form with files.
- Returns:
- a specification of a multipart file
-
-