http

package
v0.57.2 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBadRange = fmt.Errorf("unsatisfiable range")
)

Functions

This section is empty.

Types

type Range

type Range struct {
	StartOffset int64
	EndOffset   int64
}

Range represents an RFC 2616 HTTP Range

func ParseRange

func ParseRange(spec string, length int64) (Range, error)

ParseRange parses an HTTP RFC 2616 Range header value and returns an Range object for the given object length

func (Range) String

func (r Range) String() string

Jump to

Keyboard shortcuts

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