[java-client][jersey2][resteasy] add support for TRACE method (#3653)

This commit is contained in:
Jérémie Bresson 2019-08-16 05:42:41 +02:00 committed by GitHub
parent ef88bd175f
commit cd9eea2fe5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 12 additions and 0 deletions

View File

@ -721,6 +721,8 @@ public class ApiClient {
response = invocationBuilder.method("PATCH", entity);
} else if ("HEAD".equals(method)) {
response = invocationBuilder.head();
} else if ("TRACE".equals(method)) {
response = invocationBuilder.trace();
} else {
throw new ApiException(500, "unknown method type " + method);
}

View File

@ -666,6 +666,8 @@ public class ApiClient {
response = invocationBuilder.header("X-HTTP-Method-Override", "PATCH").post(entity);
} else if ("HEAD".equals(method)) {
response = invocationBuilder.head();
} else if ("TRACE".equals(method)) {
response = invocationBuilder.trace();
} else {
throw new ApiException(500, "unknown method type " + method);
}

View File

@ -705,6 +705,8 @@ public class ApiClient {
response = invocationBuilder.method("PATCH", entity);
} else if ("HEAD".equals(method)) {
response = invocationBuilder.head();
} else if ("TRACE".equals(method)) {
response = invocationBuilder.trace();
} else {
throw new ApiException(500, "unknown method type " + method);
}

View File

@ -705,6 +705,8 @@ public class ApiClient {
response = invocationBuilder.method("PATCH", entity);
} else if ("HEAD".equals(method)) {
response = invocationBuilder.head();
} else if ("TRACE".equals(method)) {
response = invocationBuilder.trace();
} else {
throw new ApiException(500, "unknown method type " + method);
}

View File

@ -705,6 +705,8 @@ public class ApiClient {
response = invocationBuilder.method("PATCH", entity);
} else if ("HEAD".equals(method)) {
response = invocationBuilder.head();
} else if ("TRACE".equals(method)) {
response = invocationBuilder.trace();
} else {
throw new ApiException(500, "unknown method type " + method);
}

View File

@ -657,6 +657,8 @@ public class ApiClient {
response = invocationBuilder.header("X-HTTP-Method-Override", "PATCH").post(entity);
} else if ("HEAD".equals(method)) {
response = invocationBuilder.head();
} else if ("TRACE".equals(method)) {
response = invocationBuilder.trace();
} else {
throw new ApiException(500, "unknown method type " + method);
}