private EurekaHttpResponse<InstanceInfo> getInstanceInternal(String urlPath) {
		final ResponseEntity<InstanceInfo> response = restClient.get()
			.uri(urlPath)
			.header(HttpHeaders.ACCEPT, MediaType.APPLICATION_JSON_VALUE)
			.retrieve()
			.toEntity(InstanceInfo.class);

		final int statusCode = statusCodeValueOf(response);
		final InstanceInfo body = response.getBody();

		return anEurekaHttpResponse(statusCode, statusCode == HttpStatus.OK.value() && body != null ? body : null)
			.headers(headersOf(response))
			.build();
	}
{@link RestClient} implementation of {@link EurekaHttpClient}.

@author Wonchul Heo
@since 4.2.0
spring-cloud-netflix-eureka-client/src/main/java/org/springframework/cloud/netflix/eureka/http/RestClientEurekaHttpClient.java