code: static String getSingleHeader(HTTPResponse resp, String headerName) {
      return Iterables.getOnlyElement(getHeaders(resp, headerName)).getValue();
    }
docs: Checks that exactly one header named {@code headerName} is present and returns its value.