netshare

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBadRequest       = errors.New("Bad Request")           // 400
	ErrNotFound         = errors.New("Not Found")             // 404
	ErrMethodNotAllowed = errors.New("Method Not Allowed")    // 405
	ErrInternal         = errors.New("Internal Server Error") // 500
)

Functions

func GetHost

func GetHost(req *http.Request) string

func GetProtocol

func GetProtocol(header http.Header) string

func PasteAddFromForm

func PasteAddFromForm(form url.Values, db storage.DB, titleMaxLen int, bodyMaxLen int, maxLifeTime int64, lexerNames []string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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