http

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2016 License: BSD-2-Clause, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContentDisposition

func ContentDisposition(filepath string) string

ContentDisposition constructs a content-disposition header.

func DeleteCookie

func DeleteCookie(w http.ResponseWriter, n string)

DeleteCookie effectively delete a cookie.

func ToHTTPError

func ToHTTPError(err error) (msg string, httpStatus int)

ToHTTPError takes an error and returns a best guess of what the corresponding HTTP error should be.

Types

type HTTPError

type HTTPError struct {
	Status int
	// contains filtered or unexported fields
}

HTTPError holds an error and HTTP status.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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