context

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: ISC Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	Response http.ResponseWriter
	Request  *http.Request
	Params   map[string]string
}

func (*Context) Respond

func (c *Context) Respond(statusCode int)

func (*Context) SetContentType

func (c *Context) SetContentType(contentType string)

func (*Context) String

func (c *Context) String(statusCode int, str string)

type HandlerFunc added in v0.0.4

type HandlerFunc func(*Context)

Jump to

Keyboard shortcuts

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