view

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Http200 = impl("")

Functions

This section is empty.

Types

type HeaderView added in v0.1.2

type HeaderView struct {
	Headers map[string]string
}

func (*HeaderView) BeforeSendHeader added in v0.1.2

func (v *HeaderView) BeforeSendHeader(h http.Header)

func (*HeaderView) Body added in v0.1.2

func (v *HeaderView) Body() io.Reader

func (*HeaderView) Status added in v0.1.2

func (v *HeaderView) Status() int

type Http404 added in v0.0.2

type Http404 struct {
	// contains filtered or unexported fields
}

func NotFound

func NotFound(method, path string) Http404

func (Http404) Body added in v0.0.2

func (i Http404) Body() io.Reader

func (Http404) ContentType added in v0.0.2

func (i Http404) ContentType() string

func (Http404) Status added in v0.0.2

func (v Http404) Status() int

type Http500 added in v0.0.2

type Http500 struct {
	// contains filtered or unexported fields
}

func InternalError

func InternalError(err error) Http500

func (Http500) Body added in v0.0.2

func (i Http500) Body() io.Reader

func (Http500) ContentType added in v0.0.2

func (i Http500) ContentType() string

func (Http500) Status added in v0.0.2

func (v Http500) Status() int

Jump to

Keyboard shortcuts

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