Documentation
¶
Index ¶
Constants ¶
View Source
const HttpContentTypeJson string = "application/json"
View Source
const HttpContentTypeLabel string = "content-type"
View Source
const HttpReqBodyLabel string = "req_body"
View Source
const HttpReqParamsPrefix string = "req"
View Source
const HttpReqParamsSeparator = "_"
View Source
const ReqParamHeaderLabel string = "header"
View Source
const ReqParamQueryLabel string = "query"
View Source
const ReqParamUrlLabel string = "url"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HttpRouter ¶
type HttpRouter struct {
Routes []Route
}
func (*HttpRouter) BindChiRouter ¶
func (r *HttpRouter) BindChiRouter() http.Handler
func (*HttpRouter) LoadRoute ¶
func (r *HttpRouter) LoadRoute(path string, routeFileName string)
type Parameters ¶
Click to show internal directories.
Click to hide internal directories.