public class HttpUtil extends Object
Constructor and Description |
---|
HttpUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isFormData(HttpRequest<?> request)
Return whether the given request features
MediaType.APPLICATION_FORM_URLENCODED or
MediaType.MULTIPART_FORM_DATA . |
static Optional<Charset> |
resolveCharset(HttpMessage<?> request)
Resolve the
Charset to use for the request. |
public static boolean isFormData(HttpRequest<?> request)
MediaType.APPLICATION_FORM_URLENCODED
or
MediaType.MULTIPART_FORM_DATA
.request
- The request