http

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MultipartForm

func MultipartForm(r *http.Request) (multipart.File, *multipart.FileHeader)

func NewHandler

func NewHandler(conf *config.Config, viewEngine *goview.ViewEngine) (http.Handler, error)

Types

type Handler

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

func (*Handler) Render

func (h *Handler) Render(w http.ResponseWriter, name string, data interface{})

func (*Handler) RenderWithStatusCode

func (h *Handler) RenderWithStatusCode(w http.ResponseWriter, statusCode int, name string, data interface{})

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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