open static fun fromFormData(formData: MultiValueMap<String, String>): FormInserter
Return a FormInserter that writes the given MultiValueMap as URL-encoded form data. The returned inserter allows for additional entries to be added via FormInserter#with(String, Object).
Note that you can also use the syncBody(Object) method in the request builders of both the WebClient and WebTestClient. In that case the setting of the content type is also not required, just be sure the map contains String values only or otherwise it would be interpreted as a multipart request.
formData - the form data to write to the output message
Return
a FormInserter that writes form data
open static fun fromFormData(key: String, value: String): FormInserter
Return a FormInserter that writes the given key-value pair as URL-encoded form data. The returned inserter allows for additional entries to be added via FormInserter#with(String, Object).
key - the key to add to the form
value - the value to add to the form
Return
a FormInserter that writes form data