[java-client][jersey2][resteasy] add support for OPTIONS method (#3677)

* [java-client][jersey2][resteasy] add support for OPTIONS method

* Update samples
This commit is contained in:
Jérémie Bresson
2019-08-19 16:51:18 +02:00
committed by William Cheng
parent a5ab60bec8
commit 8c498fb08a
6 changed files with 12 additions and 0 deletions

View File

@@ -705,6 +705,8 @@ public class ApiClient {
response = invocationBuilder.method("PATCH", entity);
} else if ("HEAD".equals(method)) {
response = invocationBuilder.head();
} else if ("OPTIONS".equals(method)) {
response = invocationBuilder.options();
} else if ("TRACE".equals(method)) {
response = invocationBuilder.trace();
} else {