@Retention(value=RUNTIME) @Target(value=PARAMETER) public @interface FormParam
Example 1:
@POST("spellcheck") Observable<Response<ResponseBody>> spellChecker(@Header("X-BingApis-SDK") String xBingApisSDK, @Query ("UserId") String userId, @FormParam("Text") String text);
The value of parameter text will be encoded and encoded value will be added to the form data sent to the API.
Modifier and Type | Required Element and Description |
---|---|
String |
value |
Modifier and Type | Optional Element and Description |
---|---|
boolean |
encoded
A value true for this argument indicates that value of
FormParam.value() is already encoded
hence engine should not encode it, by default value will be encoded. |
public abstract String value
public abstract boolean encoded
FormParam.value()
is already encoded
hence engine should not encode it, by default value will be encoded.Copyright © 2021 Microsoft Corporation. All rights reserved.