handlers

package
v3.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2017 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HD_DEPTH              = "Depth"
	HD_DEPTH_DEEP         = "1"
	HD_PREFER             = "Prefer"
	HD_PREFER_MINIMAL     = "return=minimal"
	HD_PREFERENCE_APPLIED = "Preference-Applied"
)

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(request *http.Request) handlerInterface

Types

type Response

type Response struct {
	Status int
	Header http.Header
	Body   string
	Error  error
}

func NewResponse

func NewResponse() *Response

func (*Response) Set

func (this *Response) Set(status int, body string) *Response

func (*Response) SetError

func (this *Response) SetError(err error) *Response

func (*Response) SetHeader

func (this *Response) SetHeader(key, value string) *Response

func (*Response) Write

func (this *Response) Write(writer http.ResponseWriter)

Jump to

Keyboard shortcuts

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