Package ratpack.test.http
Interface MultipartFormSpec
-
public interface MultipartFormSpec
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MultipartFormSpec
field(java.lang.String name, java.lang.String value)
Add a field to the multipart formMultipartFileSpec
file()
A specification of a file to upload (see RFC2388)
-
-
-
Method Detail
-
field
MultipartFormSpec field(java.lang.String name, java.lang.String value)
Add a field to the multipart formNote: 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
-
-