httpparser

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Header(v interface{}) (http.Header, error)

Header turns a struct into http.Header

func QueryString

func QueryString(v interface{}) (url.Values, error)

QueryString turns a struct into url.Values

Types

type HTTPRange

type HTTPRange struct {
	Start int64
	End   int64
}

HTTPRange is a struct replace Range string

func Range

func Range(r string) ([]HTTPRange, error)

Range parse a Http Range string into httpparser.HTTPRange

Jump to

Keyboard shortcuts

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