public class HttpUtil
extends java.lang.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 java.util.Optional<java.nio.charset.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 requestpublic static java.util.Optional<java.nio.charset.Charset> resolveCharset(HttpMessage<?> request)
Charset
to use for the request.request
- The requestOptional
of Charset