private void updateHeaders(HttpResponse response, HttpRequest request, int contentLength) {
    HttpUtil.setContentLength(response, contentLength);
    if (request.headers().get(RESPONSE_HEADER_KEY_1) != null) {
      response.headers().set(RESPONSE_HEADER_KEY_1, request.headers().get(RESPONSE_HEADER_KEY_1));
    }
    if (request.headers().get(RESPONSE_HEADER_KEY_2) != null) {
      response.headers().set(RESPONSE_HEADER_KEY_2, request.headers().get(RESPONSE_HEADER_KEY_2));
    }
  }
Handler to echo the Method type of the request.
Used purely for testing purposes
ambry-rest/src/test/java/com/github/ambry/rest/EchoMethodHandler.java