@Override
	public EurekaHttpResponse<Application> getApplication(String appName) {

		final ResponseEntity<Application> response = restClient.get()
			.uri("/apps/" + appName)
			.header(HttpHeaders.ACCEPT, MediaType.APPLICATION_JSON_VALUE)
			.retrieve()
			.toEntity(Application.class);

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

		final Application application = statusCode == HttpStatus.OK.value() && body != null ? body : null;

		return anEurekaHttpResponse(statusCode, application).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