use of com.linkedin.r2.message.rest.RestMethod in project rest.li by linkedin.
the class TestGreetingUnstructuredDataResourcesReactive method sentRequest.
private RestResponse sentRequest(String getPartialUrl, ByteString entity, String restMethod) throws Throwable {
Client client = getR2Client();
URI uri = URI.create("http://localhost:" + FILTERS_PORT + getPartialUrl);
RestRequest r = new RestRequestBuilder(uri).setEntity(entity).setMethod(restMethod).build();
return client.restRequest(r).get();
}
Aggregations