public class HttpUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
HttpUtils.EndpointSpec |
Modifier and Type | Field and Description |
---|---|
static String |
CONTENT_ENCODING_COMPRESS |
static String |
CONTENT_ENCODING_DEFLATE |
static String |
CONTENT_ENCODING_GZIP |
static String |
CONTENT_ENCODING_X_COMPRESS |
static String |
CONTENT_ENCODING_X_GZIP |
static String |
HEADER_ACCEPT_ENCODING |
static String |
HEADER_CONTENT_ENCODING |
static String |
HEADER_VARY |
static String |
HTTP_SCHEME |
static String |
HTTPS_SCHEME |
static String |
TRANSFER_ENCODING |
Modifier and Type | Method and Description |
---|---|
static boolean |
canMethodMutateState(String method) |
static HttpUtils.EndpointSpec |
getProxyForScheme(String scheme) |
static boolean |
isDefaultPort(String scheme,
int port) |
public static final String HTTPS_SCHEME
public static final String HTTP_SCHEME
public static final String HEADER_CONTENT_ENCODING
public static final String HEADER_ACCEPT_ENCODING
public static final String HEADER_VARY
public static final String TRANSFER_ENCODING
public static final String CONTENT_ENCODING_GZIP
public static final String CONTENT_ENCODING_X_GZIP
public static final String CONTENT_ENCODING_COMPRESS
public static final String CONTENT_ENCODING_X_COMPRESS
public static final String CONTENT_ENCODING_DEFLATE
public static boolean isDefaultPort(@NotNull String scheme, int port)
scheme
- http or httpsport
- the port ot check@Nullable public static HttpUtils.EndpointSpec getProxyForScheme(@Nullable String scheme)
scheme
- for which proxy data should be returned, null if any available data should be returned (then, HTTPS has preference over HTTP)public static boolean canMethodMutateState(@NotNull String method)
method
- the request to checkCopyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.