httputil

package
v0.0.0-...-9a1563a Latest Latest
Warning

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

Go to latest
Published: May 29, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LastModified       = "Last-Modified"
	Date               = "Date"
	ETag               = "ETag"
	ContentType        = "Content-Type"
	ContentMD5         = "Content-Md5"
	ContentEncoding    = "Content-Encoding"
	Expires            = "Expires"
	ContentLength      = "Content-Length"
	ContentLanguage    = "Content-Language"
	ContentRange       = "Content-Range"
	Connection         = "Connection"
	AcceptRanges       = "Accept-Ranges"
	AmzBucketRegion    = "X-Amz-Bucket-Region"
	ServerInfo         = "Server"
	RetryAfter         = "Retry-After"
	Location           = "Location"
	CacheControl       = "Cache-Control"
	ContentDisposition = "Content-Disposition"
	Authorization      = "Authorization"
	Action             = "Action"
	Range              = "Range"
)

Variables

This section is empty.

Functions

func ReplyBinary

func ReplyBinary(w http.ResponseWriter, code int, data io.Reader) error

func ReplyEmpty

func ReplyEmpty(w http.ResponseWriter, code int)

func ReplyErr

func ReplyErr(w http.ResponseWriter, code int, err error)

func ReplyJSON

func ReplyJSON(w http.ResponseWriter, code int, data interface{}) error

func ReplyXML

func ReplyXML(w http.ResponseWriter, code int, data interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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