private int getHeaderInt(final ClassicHttpResponse response,
                             final String headerName,
                             final int def) {
        try {
            final String value = getHeader(response, headerName);
            if (value != null) {
                return Integer.parseInt(value);
            }
        } catch (NumberFormatException e) {
            LOGGER.error(e::getMessage, e);
        }
        return def;
    }
Handler class that forwards the request to a URL.
stroom-proxy/stroom-proxy-app/src/main/java/stroom/proxy/app/handler/HttpSender.java