package awsm

  1. Overview
  2. Docs

Module Http.RangeSource

High level representation of a http byte range specifications. For a full treatment, see https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35

Sourcetype byte_range_spec
Sourcetype t = byte_range_spec list
Sourceval of_range : int64 -> int64 -> (t, string) Core.result

of_range start stop returns Error if stop < start.

Sourceval from_end : int64 -> t
Sourceval from_start : int64 -> t
Sourceval to_header_value : t -> string
Sourceval to_header : t -> string * string
OCaml

Innovation. Community. Security.