formUrlEncoded top-level constant
FormUrlEncoded
const formUrlEncoded
Denotes that the request body will use form URL encoding. Fields should be declared as parameters and annotated with Field/FieldMap.
Requests made with this annotation will have application/x-www-form-urlencoded MIME type. Field names and values will be UTF-8 encoded before being URI-encoded in accordance to RFC-3986.
@Post(path: '/something')
@FormUrlEncoded
Future<Response> fetch(@Field("param") String? param);
Implementation
const formUrlEncoded = FormUrlEncoded();