package
1.14.5
Repository: https://github.com/webx-top/echo.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
Copyright 2016 Wenhui Shen <www.webx.top> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
Copyright 2016 Wenhui Shen <www.webx.top> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
Copyright 2016 Wenhui Shen <www.webx.top> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
No description provided by the author
No description provided by the author
Copyright 2016 Wenhui Shen <www.webx.top> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
No description provided by the author
Copyright 2016 Wenhui Shen <www.webx.top> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
Copyright 2016 Wenhui Shen <www.webx.top> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
No description provided by the author

# Functions

No description provided by the author
AddTrailingSlash returns a root level (before router) middleware which adds a trailing slash to the request `URL#Path`.
AddTrailingSlashWithConfig returns a AddTrailingSlash middleware with config.
BasicAuth returns an HTTP basic authentication middleware.
BodyLimit returns a body limit middleware.
BodyLimitWithConfig returns a body limit middleware from config.
CORS returns a cross-origin HTTP request (CORS) middleware.
CORSFromConfig returns a CORS middleware from config.
CSRF returns a Cross-Site Request Forgery (CSRF) middleware.
CSRFWithConfig returns a CSRF middleware with config.
No description provided by the author
No description provided by the author
Gzip returns a middleware which compresses HTTP response using gzip compression scheme.
GzipWithConfig return Gzip middleware with config.
HTTPSNonWWWRedirect redirects http requests to https non www.
HTTPSNonWWWRedirectWithConfig returns an HTTPSRedirect middleware with config.
HTTPSRedirect redirects http requests to https.
HTTPSRedirectWithConfig returns an HTTPSRedirect middleware with config.
HTTPSWWWRedirect redirects http requests to https www.
HTTPSWWWRedirectWithConfig returns an HTTPSRedirect middleware with config.
KeyAuth returns an KeyAuth middleware.
KeyAuthWithConfig returns an KeyAuth middleware with config.
No description provided by the author
No description provided by the author
No description provided by the author
MaxAllowed limits simultaneous requests; can help with high traffic load.
MethodFromForm is a `MethodOverrideGetter` that gets overridden method from the form parameter.
MethodFromHeader is a `MethodOverrideGetter` that gets overridden method from the request header.
MethodFromQuery is a `MethodOverrideGetter` that gets overridden method from the query parameter.
MethodOverride returns a MethodOverride middleware.
MethodOverrideWithConfig returns a MethodOverride middleware with config.
No description provided by the author
NewRandomBalancer returns a random proxy balancer.
NewRoundRobinBalancer returns a round-robin proxy balancer.
NoCache is a simple piece of middleware that sets a number of HTTP headers to prevent a router (or subrouter) from being cached by an upstream proxy and/or client.
NonWWWRedirect redirects www requests to non www.
NonWWWRedirectWithConfig returns an HTTPSRedirect middleware with config.
Proxy returns a Proxy middleware.
ProxyHTTPCustomHandler 自定义处理(支持传递body).
ProxyWithConfig returns a Proxy middleware with config.
No description provided by the author
Queue returns a queue middleware e := echo.New() e.GET("/queue", func(c echo.Context) error { return c.String(http.StatusOK, "test") }, middleware.Queue()) */.
QueueWithConfig returns a queue middleware e := echo.New() config := middleware.QueueConfig{ Skipper: DefaultSkipper, QueueSize: 2, Workers: 1, QueueTimeout: 20 * time.Second, WorkerTimeout: 10 * time.Second, } e.GET("/queue", func(c echo.Context) error { return c.String(http.StatusOK, "test") }, middleware.QueueWithConfig(config)) */.
Recover returns a middleware which recovers from panics anywhere in the chain and handles the control to the centralized HTTPErrorHandler.
RecoverWithConfig returns a Recover middleware with config.
No description provided by the author
RemoveTrailingSlash returns a root level (before router) middleware which removes a trailing slash from the request URI.
RemoveTrailingSlashWithConfig returns a RemoveTrailingSlash middleware with config.
RequestID returns a X-Request-ID middleware.
RequestIDWithConfig returns a X-Request-ID middleware with config.
Rewrite returns a Rewrite middleware.
RewriteWithConfig returns a Rewrite middleware with config.
Secure returns a Secure middleware.
SecureWithConfig returns a Secure middleware with config.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
WWWRedirect redirects non www requests to www.
WWWRedirectWithConfig returns an HTTPSRedirect middleware with config.

# Variables

DefaultCORSConfig is the default CORS middleware config.
DefaultCSRFConfig is the default CSRF middleware config.
DefaultGzipConfig is the default Gzip middleware config.
DefaultKeyAuthConfig is the default KeyAuth middleware config.
No description provided by the author
DefaultMethodOverrideConfig is the default MethodOverride middleware config.
DefaultProxyConfig is the default Proxy middleware config.
DefaultProxyHandler Proxy Handler.
DefaultProxyHandlers default preset handlers.
DefaultProxyHTTPDirector default director.
DefaultQueueConfig defines default values for QueueConfig.
DefaultRecoverConfig is the default Recover middleware config.
DefaultRedirectConfig is the default Redirect middleware config.
DefaultRequestIDConfig is the default RequestID middleware config.
DefaultRewriteConfig is the default Rewrite middleware config.
DefaultSecureConfig is the default Secure middleware config.
DefaultTrailingSlashConfig is the default TrailingSlash middleware config.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ErrQueueTimeout is thrown when the request waits more than QueueTimeout to be queued.
ErrWorkerTimeout is thrown when the request waits more than WorkerTimeout for a worker to start processing it.
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RedirectConfig defines the config for Redirect middleware.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author