Class ContentRangeParser

java.lang.Object
org.elasticsearch.xpack.esql.datasources.utils.ContentRangeParser

public final class ContentRangeParser extends Object
Utility for parsing HTTP Content-Range headers (RFC 7233). Used by storage providers to extract total object size from range responses when metadata requests (HEAD) are denied.

Parses the total size from headers of the form bytes 0-0/12345. Returns null when the header is null, missing the total, or uses wildcard (*).

  • Method Details

    • parseTotalLength

      public static Long parseTotalLength(String contentRange)