public static Map<String, Collection<String>> parseHeaders(String headersString) {
        Map<String, Collection<String>> headersMap = new HashMap<>();
        String[] headers = headersString.split("\n");
        for (String header : headers) {
            String[] keyValue = header.split(":", 2);
            if (keyValue.length == 2) {
                String key = keyValue[0].trim();
                String value = keyValue[1].trim();
                headersMap.put(key, List.of(value));
            }
        }
        return headersMap;
    }
Which http request headers should we send in the http fetch requests.

@param headers The headers to add to the HTTP GET requests.
tika-pipes/tika-fetchers/tika-fetcher-http/src/main/java/org/apache/tika/pipes/fetcher/http/HttpFetcher.java