Package io.sentry.util
Class HttpUtils
java.lang.Object
io.sentry.util.HttpUtils
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
containsSensitiveHeader
(@NotNull String header) static @Nullable String
filterOutSecurityCookies
(@Nullable String cookieString, @Nullable List<String> additionalCookieNamesToFilter) filterOutSecurityCookiesFromHeader
(@Nullable Enumeration<String> headers, @Nullable String headerName, @Nullable List<String> additionalCookieNamesToFilter) filterOutSecurityCookiesFromHeader
(@Nullable List<String> headers, @Nullable String headerName, @Nullable List<String> additionalCookieNamesToFilter) static boolean
isHttpClientError
(int statusCode) static boolean
isHttpServerError
(int statusCode) static boolean
isSecurityCookie
(@NotNull String cookieName, @Nullable List<String> additionalCookieNamesToFilter)
-
Field Details
-
COOKIE_HEADER_NAME
- See Also:
-
-
Constructor Details
-
HttpUtils
public HttpUtils()
-
-
Method Details
-
containsSensitiveHeader
-
filterOutSecurityCookiesFromHeader
-
filterOutSecurityCookiesFromHeader
-
filterOutSecurityCookies
-
isSecurityCookie
-
isHttpClientError
public static boolean isHttpClientError(int statusCode) -
isHttpServerError
public static boolean isHttpServerError(int statusCode)
-