jersey
jersey copied to clipboard
does jersey 2.x Client API support DELETE with a body ?
I'am working on a project using Client API,the webservice API provided by other company use a DELETE request with body.
what can I do with it? by this?: method("DELETE",Entity.entity(json.toString(),MediaType.APPLICATION_JSON_TYPE));
method("DELETE",Entity.entity(json.toString(),MediaType.APPLICATION_JSON_TYPE)); this will cause a error: ijava.lang.IllegalStateException: Entity must be null for http method DELETE. what should I do? ,while, RESTeasy have no such limitation?