Documentation
¶
Index ¶
Constants ¶
View Source
const ( GET = "GET" POST = "POST" PUT = "PUT" DELETE = "DELETE" PATCH = "PATCH" OPTIONS = "OPTIONS" )
HTTP methods constants
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server interface {
POST(path string, f http.HandlerFunc)
GET(path string, f http.HandlerFunc)
PUT(path string, f http.HandlerFunc)
DELETE(path string, f http.HandlerFunc)
PATCH(path string, f http.HandlerFunc)
OPTIONS(path string, f http.HandlerFunc)
USE(method, path string, fs ...MiddlewareFunc)
ServeHTTP(http.ResponseWriter, *http.Request)
ServeFiles(path string, strip bool)
NotFound(http.Handler)
NotAllowed(http.Handler)
}
func New ¶
func New(fs ...MiddlewareFunc) Server
Click to show internal directories.
Click to hide internal directories.