mirror of
https://github.com/kataras/iris.git
synced 2026-02-28 05:26:00 +00:00
Merge pull request #1429 from successgo/fix-typo
Fix typo Former-commit-id: 1421331634d21541a84cbc0088944c5f9df0b9c8
This commit is contained in:
2
cache/cache.go
vendored
2
cache/cache.go
vendored
@@ -37,7 +37,7 @@ import (
|
|||||||
// Cache accepts the cache expiration duration.
|
// Cache accepts the cache expiration duration.
|
||||||
// If the "expiration" input argument is invalid, <=2 seconds,
|
// If the "expiration" input argument is invalid, <=2 seconds,
|
||||||
// then expiration is taken by the "cache-control's maxage" header.
|
// 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.
|
// All types of response can be cached, templates, json, text, anything.
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -257,7 +257,7 @@ var WithoutAutoFireStatusCode = func(app *Application) {
|
|||||||
app.config.DisableAutoFireStatusCode = true
|
app.config.DisableAutoFireStatusCode = true
|
||||||
}
|
}
|
||||||
|
|
||||||
// WithPathEscape enanbles the PathEscape setting.
|
// WithPathEscape enables the PathEscape setting.
|
||||||
//
|
//
|
||||||
// See `Configuration`.
|
// See `Configuration`.
|
||||||
var WithPathEscape = func(app *Application) {
|
var WithPathEscape = func(app *Application) {
|
||||||
@@ -271,7 +271,7 @@ var WithOptimizations = func(app *Application) {
|
|||||||
app.config.EnableOptimizations = true
|
app.config.EnableOptimizations = true
|
||||||
}
|
}
|
||||||
|
|
||||||
// WithFireMethodNotAllowed enanbles the FireMethodNotAllowed setting.
|
// WithFireMethodNotAllowed enables the FireMethodNotAllowed setting.
|
||||||
//
|
//
|
||||||
// See `Configuration`.
|
// See `Configuration`.
|
||||||
var WithFireMethodNotAllowed = func(app *Application) {
|
var WithFireMethodNotAllowed = func(app *Application) {
|
||||||
@@ -736,7 +736,7 @@ type Configuration struct {
|
|||||||
// the requested path to the registered path
|
// the requested path to the registered path
|
||||||
// for example, if /home/ path is requested but no handler for this Route found,
|
// for example, if /home/ path is requested but no handler for this Route found,
|
||||||
// then the Router checks if /home handler exists, if yes,
|
// 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.
|
// 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
|
// 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,
|
// for example, if /home/ path is requested but no handler for this Route found,
|
||||||
// then the Router checks if /home handler exists, if yes,
|
// 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 {
|
func (c Configuration) GetDisablePathCorrection() bool {
|
||||||
return c.DisablePathCorrection
|
return c.DisablePathCorrection
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -921,7 +921,7 @@ func (api *APIBuilder) Favicon(favPath string, requestPath ...string) *Route {
|
|||||||
|
|
||||||
// OnErrorCode registers an error http status code
|
// OnErrorCode registers an error http status code
|
||||||
// based on the "statusCode" < 200 || >= 400 (came from `context.StatusCodeNotSuccessful`).
|
// 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
|
// handler which will try to reset
|
||||||
// the body if recorder was enabled
|
// the body if recorder was enabled
|
||||||
// and/or disable the gzip if gzip response recorder
|
// and/or disable the gzip if gzip response recorder
|
||||||
|
|||||||
2
go19.go
2
go19.go
@@ -9,7 +9,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type (
|
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.
|
// 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.
|
// The Context is the most important thing on the iris's http flow.
|
||||||
|
|||||||
2
iris.go
2
iris.go
@@ -515,7 +515,7 @@ var (
|
|||||||
//
|
//
|
||||||
// A shortcut for the `context#IsErrPath`.
|
// A shortcut for the `context#IsErrPath`.
|
||||||
IsErrPath = context.IsErrPath
|
IsErrPath = context.IsErrPath
|
||||||
// NewProblem retruns a new Problem.
|
// NewProblem returns a new Problem.
|
||||||
// Head over to the `Problem` type godoc for more.
|
// Head over to the `Problem` type godoc for more.
|
||||||
//
|
//
|
||||||
// A shortcut for the `context#NewProblem`.
|
// A shortcut for the `context#NewProblem`.
|
||||||
|
|||||||
Reference in New Issue
Block a user