http200ok

package module
v0.0.0-...-79b8611 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2016 License: MIT Imports: 6 Imported by: 14

README

http200ok

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	Request   *http.Request
	Response  http.ResponseWriter
	WebSocket webSocket
	// contains filtered or unexported fields
}

func (*Context) Get

func (c *Context) Get(key string) interface{}

func (*Context) IsPost

func (c *Context) IsPost() bool

func (*Context) Next

func (c *Context) Next()

func (*Context) RequestParam

func (c *Context) RequestParam(key string) string

func (*Context) Set

func (c *Context) Set(key string, value interface{})

func (*Context) Stop

func (c *Context) Stop()

type ErrorHandler

type ErrorHandler func(http.ResponseWriter, *http.Request, error)

type Handler

type Handler func(c *Context)

type Server

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

func New

func New() *Server

func (*Server) Delete

func (s *Server) Delete(pattern string, handlers ...Handler)

func (*Server) Get

func (s *Server) Get(pattern string, handlers ...Handler)

func (*Server) Head

func (s *Server) Head(pattern string, handlers ...Handler)

func (*Server) Post

func (s *Server) Post(pattern string, handlers ...Handler)

func (*Server) Put

func (s *Server) Put(pattern string, handlers ...Handler)

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(rw http.ResponseWriter, req *http.Request)

func (*Server) SetErrorHandler

func (s *Server) SetErrorHandler(handler ErrorHandler)

func (*Server) SetMethodNotAllowedHandler

func (s *Server) SetMethodNotAllowedHandler(handler http.HandlerFunc)

func (*Server) SetNotFoundHandler

func (s *Server) SetNotFoundHandler(handler http.HandlerFunc)

func (*Server) Use

func (s *Server) Use(handler ...Handler)

func (*Server) WebSocket

func (s *Server) WebSocket(pattern string, handlers ...Handler)

Jump to

Keyboard shortcuts

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