contentrange

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContentRange

type ContentRange struct {
	Start, End, Total int64
}

func Parse

func Parse(s string) (*ContentRange, error)

Parse parses a Content-Range header string as per RFC 7233. It returns the parsed ContentRange or an error if the header is invalid.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL