package awsm

  1. Overview
  2. Docs

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

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

of_range start stop returns Error if stop < start.

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

Innovation. Community. Security.