mirror of
https://github.com/labstack/echo.git
synced 2025-09-16 09:16:29 +02:00
6
echo.go
6
echo.go
@@ -247,7 +247,7 @@ func (e *Echo) Logger() *log.Logger {
|
||||
return e.logger
|
||||
}
|
||||
|
||||
// HTTP2 enables/disables HTTP2 support.
|
||||
// HTTP2 enable/disable HTTP2 support.
|
||||
func (e *Echo) HTTP2(on bool) {
|
||||
e.http2 = on
|
||||
}
|
||||
@@ -272,7 +272,7 @@ func (e *Echo) SetRenderer(r Renderer) {
|
||||
e.renderer = r
|
||||
}
|
||||
|
||||
// SetDebug enables/disables debug mode.
|
||||
// SetDebug enable/disable debug mode.
|
||||
func (e *Echo) SetDebug(on bool) {
|
||||
e.debug = on
|
||||
}
|
||||
@@ -282,7 +282,7 @@ func (e *Echo) Debug() bool {
|
||||
return e.debug
|
||||
}
|
||||
|
||||
// AutoIndex enables/disables automatically creating an index page for the directory.
|
||||
// AutoIndex enable/disable automatically creating an index page for the directory.
|
||||
func (e *Echo) AutoIndex(on bool) {
|
||||
e.autoIndex = on
|
||||
}
|
||||
|
@@ -23,7 +23,7 @@ and message `HTTPError.Message`.
|
||||
|
||||
`Echo#SetDebug(on bool)`
|
||||
|
||||
Enables/disables debug mode.
|
||||
Enable/disable debug mode.
|
||||
|
||||
### Log prefix
|
||||
|
||||
@@ -47,13 +47,13 @@ SetLogLevel sets the log level for the logger. Default value is `log.INFO`.
|
||||
|
||||
`echo#HTTP(on bool)`
|
||||
|
||||
HTTP2 enables/disables HTTP2 support.
|
||||
Enable/disable HTTP2 support.
|
||||
|
||||
### Auto index
|
||||
|
||||
`Echo#AutoIndex(on bool)`
|
||||
|
||||
AutoIndex enables/disables automatically creating an index page for the directory.
|
||||
Enable/disable automatically creating an index page for the directory.
|
||||
|
||||
*Example*
|
||||
|
||||
|
Reference in New Issue
Block a user