mirror of
https://github.com/kataras/iris.git
synced 2025-02-02 15:30:36 +01:00
Merge pull request #1429 from successgo/fix-typo
Fix typo Former-commit-id: 1421331634d21541a84cbc0088944c5f9df0b9c8
This commit is contained in:
commit
b5d847fcbe
2
cache/cache.go
vendored
2
cache/cache.go
vendored
|
@ -37,7 +37,7 @@ import (
|
|||
// Cache accepts the cache expiration duration.
|
||||
// If the "expiration" input argument is invalid, <=2 seconds,
|
||||
// then expiration is taken by the "cache-control's maxage" header.
|
||||
// Returns a Handler structure which you can use to customize cache furher.
|
||||
// Returns a Handler structure which you can use to customize cache further.
|
||||
//
|
||||
// All types of response can be cached, templates, json, text, anything.
|
||||
//
|
||||
|
|
|
@ -257,7 +257,7 @@ var WithoutAutoFireStatusCode = func(app *Application) {
|
|||
app.config.DisableAutoFireStatusCode = true
|
||||
}
|
||||
|
||||
// WithPathEscape enanbles the PathEscape setting.
|
||||
// WithPathEscape enables the PathEscape setting.
|
||||
//
|
||||
// See `Configuration`.
|
||||
var WithPathEscape = func(app *Application) {
|
||||
|
@ -271,7 +271,7 @@ var WithOptimizations = func(app *Application) {
|
|||
app.config.EnableOptimizations = true
|
||||
}
|
||||
|
||||
// WithFireMethodNotAllowed enanbles the FireMethodNotAllowed setting.
|
||||
// WithFireMethodNotAllowed enables the FireMethodNotAllowed setting.
|
||||
//
|
||||
// See `Configuration`.
|
||||
var WithFireMethodNotAllowed = func(app *Application) {
|
||||
|
@ -736,7 +736,7 @@ type Configuration struct {
|
|||
// the requested path to the registered path
|
||||
// for example, if /home/ path is requested but no handler for this Route found,
|
||||
// then the Router checks if /home handler exists, if yes,
|
||||
// (permant)redirects the client to the correct path /home.
|
||||
// (permanent)redirects the client to the correct path /home.
|
||||
//
|
||||
// See `DisablePathCorrectionRedirection` to enable direct handler execution instead of redirection.
|
||||
//
|
||||
|
@ -879,7 +879,7 @@ func (c Configuration) GetVHost() string {
|
|||
// DisablePathCorrection corrects and redirects the requested path to the registered path
|
||||
// for example, if /home/ path is requested but no handler for this Route found,
|
||||
// then the Router checks if /home handler exists, if yes,
|
||||
// (permant)redirects the client to the correct path /home.
|
||||
// (permanent)redirects the client to the correct path /home.
|
||||
func (c Configuration) GetDisablePathCorrection() bool {
|
||||
return c.DisablePathCorrection
|
||||
}
|
||||
|
|
|
@ -921,7 +921,7 @@ func (api *APIBuilder) Favicon(favPath string, requestPath ...string) *Route {
|
|||
|
||||
// OnErrorCode registers an error http status code
|
||||
// based on the "statusCode" < 200 || >= 400 (came from `context.StatusCodeNotSuccessful`).
|
||||
// The handler is being wrapepd by a generic
|
||||
// The handler is being wrapped by a generic
|
||||
// handler which will try to reset
|
||||
// the body if recorder was enabled
|
||||
// and/or disable the gzip if gzip response recorder
|
||||
|
|
2
go19.go
2
go19.go
|
@ -9,7 +9,7 @@ import (
|
|||
)
|
||||
|
||||
type (
|
||||
// Context is the midle-man server's "object" for the clients.
|
||||
// Context is the middle-man server's "object" for the clients.
|
||||
//
|
||||
// A New context is being acquired from a sync.Pool on each connection.
|
||||
// The Context is the most important thing on the iris's http flow.
|
||||
|
|
Loading…
Reference in New Issue
Block a user