|
@@ -48,11 +48,7 @@ import static org.elasticsearch.core.TimeValue.parseTimeValue;
|
|
|
|
|
|
public class RestRequest implements ToXContent.Params, Traceable {
|
|
|
|
|
|
- @Deprecated()
|
|
|
- // TODO remove once Serverless is updated
|
|
|
- public static final String RESPONSE_RESTRICTED = "responseRestricted";
|
|
|
- // TODO rename to `pathRestricted` once Serverless is updated
|
|
|
- public static final String PATH_RESTRICTED = "responseRestricted";
|
|
|
+ public static final String PATH_RESTRICTED = "pathRestricted";
|
|
|
// tchar pattern as defined by RFC7230 section 3.2.6
|
|
|
private static final Pattern TCHAR_PATTERN = Pattern.compile("[a-zA-Z0-9!#$%&'*+\\-.\\^_`|~]+");
|
|
|
|
|
@@ -629,12 +625,6 @@ public class RestRequest implements ToXContent.Params, Traceable {
|
|
|
consumedParams.add(PATH_RESTRICTED);
|
|
|
}
|
|
|
|
|
|
- @Deprecated()
|
|
|
- // TODO remove once Serverless is updated
|
|
|
- public void markResponseRestricted(String restriction) {
|
|
|
- markPathRestricted(restriction);
|
|
|
- }
|
|
|
-
|
|
|
@Override
|
|
|
public String getSpanId() {
|
|
|
return "rest-" + getRequestId();
|