{"modulePath":"github.com/labstack/echo/v5","version":"v5.4.7","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package echo\n\nPackage echo implements high performance, minimalist Go web framework.\n\nExample:\n\n\tpackage main\n\n\timport (\n\t\t\"log/slog\"\n\t\t\"net/http\"\n\n\t\t\"github.com/labstack/echo/v5\"\n\t\t\"github.com/labstack/echo/v5/middleware\"\n\t)\n\n\t// Handler\n\tfunc hello(c *echo.Context) error {\n\t\treturn c.String(http.StatusOK, \"Hello, World!\")\n\t}\n\n\tfunc main() {\n\t\t// Echo instance\n\t\te := echo.New()\n\n\t\t// Middleware\n\t\te.Use(middleware.RequestLogger())\n\t\te.Use(middleware.Recover())\n\n\t\t// Routes\n\t\te.GET(\"/\", hello)\n\n\t\t// Start server\n\t\tif err := e.Start(\":8080\"); err != nil {\n\t\t\tslog.Error(\"failed to start server\", \"error\", err)\n\t\t}\n\t}\n\nLearn more at [https://echo.labstack.com](https://echo.labstack.com)\n\n## Constants\n\n```go\nconst (\n\tTimeLayoutUnixTime      = TimeLayout(\"UnixTime\")      // Unix timestamp in seconds\n\tTimeLayoutUnixTimeMilli = TimeLayout(\"UnixTimeMilli\") // Unix timestamp in milliseconds\n\tTimeLayoutUnixTimeNano  = TimeLayout(\"UnixTimeNano\")  // Unix timestamp in nanoseconds\n)\n```\nTimeLayout constants for parsing Unix timestamps in different precisions.\n\n```go\nconst (\n\t// MIMEApplicationJSON JavaScript Object Notation (JSON) https://www.rfc-editor.org/rfc/rfc8259\n\tMIMEApplicationJSON = \"application/json\"\n\t// Deprecated: Please use MIMEApplicationJSON instead. JSON should be encoded using UTF-8 by default.\n\t// No \"charset\" parameter is defined for this registration.\n\t// Adding one really has no effect on compliant recipients.\n\t// See RFC 8259, section 8.1. https://datatracker.ietf.org/doc/html/rfc8259#section-8.1n\"\n\tMIMEApplicationJSONCharsetUTF8       = MIMEApplicationJSON + \"; \" + charsetUTF8\n\tMIMEApplicationJavaScript            = \"application/javascript\"\n\tMIMEApplicationJavaScriptCharsetUTF8 = MIMEApplicationJavaScript + \"; \" + charsetUTF8\n\tMIMEApplicationXML                   = \"application/xml\"\n\tMIMEApplicationXMLCharsetUTF8        = MIMEApplicationXML + \"; \" + charsetUTF8\n\tMIMETextXML                          = \"text/xml\"\n\tMIMETextXMLCharsetUTF8               = MIMETextXML + \"; \" + charsetUTF8\n\tMIMEApplicationForm                  = \"application/x-www-form-urlencoded\"\n\tMIMEApplicationProtobuf              = \"application/protobuf\"\n\tMIMEApplicationMsgpack               = \"application/msgpack\"\n\t// MIMEApplicationProblemJSON is the content type for RFC 9457 Problem Details responses.\n\t// https://www.rfc-editor.org/rfc/rfc9457\n\tMIMEApplicationProblemJSON = \"application/problem+json\"\n\tMIMETextHTML               = \"text/html\"\n\tMIMETextHTMLCharsetUTF8    = MIMETextHTML + \"; \" + charsetUTF8\n\tMIMETextPlain              = \"text/plain\"\n\tMIMETextPlainCharsetUTF8   = MIMETextPlain + \"; \" + charsetUTF8\n\tMIMEMultipartForm          = \"multipart/form-data\"\n\tMIMEOctetStream            = \"application/octet-stream\"\n)\n```\nMIME types\n\n```go\nconst (\n\n\t// PROPFIND Method can be used on collection and property resources.\n\tPROPFIND = \"PROPFIND\"\n\t// REPORT Method can be used to get information about a resource, see rfc 3253\n\tREPORT = \"REPORT\"\n\t// QUERY Method is a safe, idempotent request method carrying request content (a query) in its body, see rfc 10008.\n\t// It is not (yet) part of the `net/http` standard library, so Echo defines it here.\n\tQUERY = \"QUERY\"\n\t// RouteNotFound is a special method type for routes handling \"route not found\" (404) cases\n\tRouteNotFound = \"echo_route_not_found\"\n\t// RouteAny is a special method type that matches any HTTP method in request. Any has lower\n\t// priority that other methods that have been registered with Router to that path.\n\tRouteAny = \"echo_route_any\"\n)\n```\n\n```go\nconst (\n\tHeaderAccept         = \"Accept\"\n\tHeaderAcceptEncoding = \"Accept-Encoding\"\n\t// HeaderAllow is the name of the \"Allow\" header field used to list the set of methods\n\t// advertised as supported by the target resource. Returning an Allow header is mandatory\n\t// for status 405 (method not found) and useful for the OPTIONS method in responses.\n\t// See RFC 7231: https://datatracker.ietf.org/doc/html/rfc7231#section-7.4.1\n\tHeaderAllow               = \"Allow\"\n\tHeaderAuthorization       = \"Authorization\"\n\tHeaderContentDisposition  = \"Content-Disposition\"\n\tHeaderContentEncoding     = \"Content-Encoding\"\n\tHeaderContentLength       = \"Content-Length\"\n\tHeaderContentType         = \"Content-Type\"\n\tHeaderCookie              = \"Cookie\"\n\tHeaderSetCookie           = \"Set-Cookie\"\n\tHeaderIfModifiedSince     = \"If-Modified-Since\"\n\tHeaderLastModified        = \"Last-Modified\"\n\tHeaderLocation            = \"Location\"\n\tHeaderRetryAfter          = \"Retry-After\"\n\tHeaderUpgrade             = \"Upgrade\"\n\tHeaderVary                = \"Vary\"\n\tHeaderWWWAuthenticate     = \"WWW-Authenticate\"\n\tHeaderXForwardedFor       = \"X-Forwarded-For\"\n\tHeaderXForwardedProto     = \"X-Forwarded-Proto\"\n\tHeaderXForwardedProtocol  = \"X-Forwarded-Protocol\"\n\tHeaderXForwardedSsl       = \"X-Forwarded-Ssl\"\n\tHeaderXUrlScheme          = \"X-Url-Scheme\"\n\tHeaderXHTTPMethodOverride = \"X-HTTP-Method-Override\"\n\tHeaderXRealIP             = \"X-Real-Ip\"\n\tHeaderXRequestID          = \"X-Request-Id\"\n\tHeaderXCorrelationID      = \"X-Correlation-Id\"\n\tHeaderXRequestedWith      = \"X-Requested-With\"\n\tHeaderServer              = \"Server\"\n\n\t// HeaderOrigin request header indicates the origin (scheme, hostname, and port) that caused the request.\n\t// See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin\n\tHeaderOrigin       = \"Origin\"\n\tHeaderCacheControl = \"Cache-Control\"\n\tHeaderConnection   = \"Connection\"\n\n\t// Access control\n\tHeaderAccessControlRequestMethod    = \"Access-Control-Request-Method\"\n\tHeaderAccessControlRequestHeaders   = \"Access-Control-Request-Headers\"\n\tHeaderAccessControlAllowOrigin      = \"Access-Control-Allow-Origin\"\n\tHeaderAccessControlAllowMethods     = \"Access-Control-Allow-Methods\"\n\tHeaderAccessControlAllowHeaders     = \"Access-Control-Allow-Headers\"\n\tHeaderAccessControlAllowCredentials = \"Access-Control-Allow-Credentials\"\n\tHeaderAccessControlExposeHeaders    = \"Access-Control-Expose-Headers\"\n\tHeaderAccessControlMaxAge           = \"Access-Control-Max-Age\"\n\n\t// Security\n\tHeaderStrictTransportSecurity         = \"Strict-Transport-Security\"\n\tHeaderXContentTypeOptions             = \"X-Content-Type-Options\"\n\tHeaderXXSSProtection                  = \"X-XSS-Protection\"\n\tHeaderXFrameOptions                   = \"X-Frame-Options\"\n\tHeaderContentSecurityPolicy           = \"Content-Security-Policy\"\n\tHeaderContentSecurityPolicyReportOnly = \"Content-Security-Policy-Report-Only\"\n\tHeaderXCSRFToken                      = \"X-CSRF-Token\" // #nosec G101\n\tHeaderReferrerPolicy                  = \"Referrer-Policy\"\n\n\t// HeaderSecFetchSite fetch metadata request header indicates the relationship between a request initiator's\n\t// origin and the origin of the requested resource.\n\t// See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Sec-Fetch-Site\n\tHeaderSecFetchSite = \"Sec-Fetch-Site\"\n)\n```\nHeaders\n\n```go\nconst (\n\t// NotFoundRouteName is name of RouteInfo returned when router did not find matching route (404: not found).\n\tNotFoundRouteName = \"echo_route_not_found_name\"\n\t// MethodNotAllowedRouteName is name of RouteInfo returned when router did not find matching method for route  (405: method not allowed).\n\tMethodNotAllowedRouteName = \"echo_route_method_not_allowed_name\"\n)\n```\n\n```go\nconst (\n\t// ContextKeyHeaderAllow is set by Router for getting value for `Allow` header in later stages of handler call chain.\n\t// Allow header is mandatory for status 405 (method not found) and useful for OPTIONS method requests.\n\t// It is added to context only when Router does not find matching method handler for request.\n\tContextKeyHeaderAllow = \"echo_header_allow\"\n)\n```\n\n```go\nconst (\n\t// Version of Echo\n\tVersion = \"5.4.7\"\n)\n```\n\n## Variables\n\n```go\nvar (\n\tErrBadRequest                  = \u0026httpError{http.StatusBadRequest}            // 400\n\tErrUnauthorized                = \u0026httpError{http.StatusUnauthorized}          // 401\n\tErrForbidden                   = \u0026httpError{http.StatusForbidden}             // 403\n\tErrNotFound                    = \u0026httpError{http.StatusNotFound}              // 404\n\tErrMethodNotAllowed            = \u0026httpError{http.StatusMethodNotAllowed}      // 405\n\tErrRequestTimeout              = \u0026httpError{http.StatusRequestTimeout}        // 408\n\tErrStatusRequestEntityTooLarge = \u0026httpError{http.StatusRequestEntityTooLarge} // 413\n\tErrUnsupportedMediaType        = \u0026httpError{http.StatusUnsupportedMediaType}  // 415\n\tErrTooManyRequests             = \u0026httpError{http.StatusTooManyRequests}       // 429\n\tErrInternalServerError         = \u0026httpError{http.StatusInternalServerError}   // 500\n\tErrBadGateway                  = \u0026httpError{http.StatusBadGateway}            // 502\n\tErrServiceUnavailable          = \u0026httpError{http.StatusServiceUnavailable}    // 503\n)\n```\nThe following errors can produce HTTP status code by implementing HTTPStatusCoder interface\n\n```go\nvar (\n\tErrValidatorNotRegistered = errors.New(\"validator not registered\")\n\tErrRendererNotRegistered  = errors.New(\"renderer not registered\")\n\tErrInvalidRedirectCode    = errors.New(\"invalid redirect status code\")\n\n\tErrCookieNotFound         = errors.New(\"cookie not found\")\n\tErrInvalidCertOrKeyType   = errors.New(\"invalid cert or key type, must be string or []byte\")\n\tErrInvalidListenerNetwork = errors.New(\"invalid listener network\")\n)\n```\nThe following errors fall into 500 (InternalServerError) category\n\n```go\nvar ErrInvalidJSONPCallback = errors.New(\"invalid JSONP callback\")\n```\nErrInvalidJSONPCallback is wrapped in the 400 Bad Request error that Context.JSONP and Context.JSONPBlob return when the callback is not a valid JSONP function name. See Context.JSONP.\n\n```go\nvar ErrInvalidKeyType = errors.New(\"invalid key type\")\n```\nErrInvalidKeyType is error that is returned when the value is not castable to expected type.\n\n```go\nvar ErrNonExistentKey = errors.New(\"non existent key\")\n```\nErrNonExistentKey is error that is returned when key does not exist\n\n## Functions\n\n```go\nfunc BindBody(c *Context, target any) (err error)\n```\nBindBody binds request body contents to bindable object NB: then binding forms take note that this implementation uses standard library form parsing which parses form data from BOTH URL and BODY if content type is not MIMEMultipartForm See non-MIMEMultipartForm: [https://golang.org/pkg/net/http/#Request.ParseForm](https://golang.org/pkg/net/http/#Request.ParseForm) See MIMEMultipartForm: [https://golang.org/pkg/net/http/#Request.ParseMultipartForm](https://golang.org/pkg/net/http/#Request.ParseMultipartForm)\n\n```go\nfunc BindHeaders(c *Context, target any) error\n```\nBindHeaders binds HTTP headers to a bindable object\n\n```go\nfunc BindPathValues(c *Context, target any) error\n```\nBindPathValues binds path parameter values to bindable object\n\n```go\nfunc BindQueryParams(c *Context, target any) error\n```\nBindQueryParams binds query params to bindable object\n\n```go\nfunc ContextGet[T any](c *Context, key string) (T, error)\n```\nContextGet retrieves a value from the context store or ErrNonExistentKey error the key is missing. Returns ErrInvalidKeyType error if the value is not castable to type T.\n\n```go\nfunc ContextGetOr[T any](c *Context, key string, defaultValue T) (T, error)\n```\nContextGetOr retrieves a value from the context store or returns a default value when the key is missing. Returns ErrInvalidKeyType error if the value is not castable to type T.\n\n```go\nfunc FormValue[T any](c *Context, key string, opts ...any) (T, error)\n```\nFormValue extracts and parses a single form value from the request by key. It returns the typed value and an error if binding fails. Returns ErrNonExistentKey if parameter not found.\n\nEmpty String Handling:\n\n\tIf the form field exists but has an empty value, the zero value of type T is returned\n\twith no error. For example, an empty form field returns (0, nil) for int types.\n\tThis differs from standard library behavior where parsing empty strings returns errors.\n\tTo treat empty values as errors, validate the result separately or check the raw value.\n\nSee ParseValue for supported types and options\n\n```go\nfunc FormValueOr[T any](c *Context, key string, defaultValue T, opts ...any) (T, error)\n```\nFormValueOr extracts and parses a single form value from the request by key. Returns defaultValue if the parameter is not found or has an empty value. Returns an error only if parsing fails or form parsing errors occur.\n\nExample:\n\n\tlimit, err := echo.FormValueOr[int](c, \"limit\", 100)\n\t// If \"limit\" is missing: returns (100, nil)\n\t// If \"limit\" is \"50\": returns (50, nil)\n\t// If \"limit\" is \"abc\": returns (100, BindingError)\n\nSee ParseValue for supported types and options\n\n```go\nfunc FormValues[T any](c *Context, key string, opts ...any) ([]T, error)\n```\nFormValues extracts and parses all values for a form values key as a slice. It returns the typed slice and an error if binding any value fails. Returns ErrNonExistentKey if parameter not found.\n\nSee ParseValues for supported types and options\n\n```go\nfunc FormValuesOr[T any](c *Context, key string, defaultValue []T, opts ...any) ([]T, error)\n```\nFormValuesOr extracts and parses all values for a form values key as a slice. Returns defaultValue if the parameter is not found. Returns an error only if parsing any value fails or form parsing errors occur.\n\nExample:\n\n\ttags, err := echo.FormValuesOr[string](c, \"tags\", []string{})\n\t// If \"tags\" is missing: returns ([], nil)\n\t// If form parsing fails: returns (nil, error)\n\nSee ParseValues for supported types and options\n\n```go\nfunc HandlerName(h HandlerFunc) string\n```\nHandlerName returns string name for given function.\n\n```go\nfunc MustSubFS(currentFs fs.FS, fsRoot string) fs.FS\n```\nMustSubFS creates sub FS from current filesystem or panic on failure. Panic happens when \\`fsRoot\\` contains invalid path according to \\`fs.ValidPath\\` rules.\n\nMustSubFS is helpful when dealing with \\`embed.FS\\` because for example \\`//go:embed assets/images\\` embeds files with paths including \\`assets/images\\` as their prefix. In that case use \\`fs := echo.MustSubFS(fs, \"rootDirectory\") to create sub fs which uses necessary prefix for directory path.\n\n```go\nfunc NewBindingError(sourceParam string, values []string, message string, err error) error\n```\nNewBindingError creates new instance of binding error\n\n```go\nfunc NewDefaultFS(dir string) fs.FS\n```\nNewDefaultFS returns a new defaultFS instance which allows \\`fs.FS.Open\\` to have absolute paths as input if it matches then given dir as prefix.\n\n```go\nfunc ParseValue[T any](value string, opts ...any) (T, error)\n```\nParseValue parses value to generic type\n\nTypes that are supported:\n\n  - bool\n  - float32\n  - float64\n  - int\n  - int8\n  - int16\n  - int32\n  - int64\n  - uint\n  - uint8/byte\n  - uint16\n  - uint32\n  - uint64\n  - string\n  - echo.BindUnmarshaler interface\n  - encoding.TextUnmarshaler interface\n  - json.Unmarshaler interface\n  - time.Duration\n  - time.Time use echo.TimeOpts or echo.TimeLayout to set time parsing configuration\n\n```go\nfunc ParseValueOr[T any](value string, defaultValue T, opts ...any) (T, error)\n```\nParseValueOr parses value to generic type, when value is empty defaultValue is returned.\n\nTypes that are supported:\n\n  - bool\n  - float32\n  - float64\n  - int\n  - int8\n  - int16\n  - int32\n  - int64\n  - uint\n  - uint8/byte\n  - uint16\n  - uint32\n  - uint64\n  - string\n  - echo.BindUnmarshaler interface\n  - encoding.TextUnmarshaler interface\n  - json.Unmarshaler interface\n  - time.Duration\n  - time.Time use echo.TimeOpts or echo.TimeLayout to set time parsing configuration\n\n```go\nfunc ParseValues[T any](values []string, opts ...any) ([]T, error)\n```\nParseValues parses value to generic type slice. Same types are supported as ParseValue function but the result type is slice instead of scalar value.\n\nSee ParseValue for supported types and options\n\n```go\nfunc ParseValuesOr[T any](values []string, defaultValue []T, opts ...any) ([]T, error)\n```\nParseValuesOr parses value to generic type slice, when value is empty defaultValue is returned. Same types are supported as ParseValue function but the result type is slice instead of scalar value.\n\nSee ParseValue for supported types and options\n\n```go\nfunc PathParam[T any](c *Context, paramName string, opts ...any) (T, error)\n```\nPathParam extracts and parses a path parameter from the context by name. It returns the typed value and an error if binding fails. Returns ErrNonExistentKey if parameter not found.\n\nEmpty String Handling:\n\n\tIf the parameter exists but has an empty value, the zero value of type T is returned\n\twith no error. For example, a path parameter with value \"\" returns (0, nil) for int types.\n\tThis differs from standard library behavior where parsing empty strings returns errors.\n\tTo treat empty values as errors, validate the result separately or check the raw value.\n\nSee ParseValue for supported types and options\n\n```go\nfunc PathParamOr[T any](c *Context, paramName string, defaultValue T, opts ...any) (T, error)\n```\nPathParamOr extracts and parses a path parameter from the context by name. Returns defaultValue if the parameter is not found or has an empty value. Returns an error only if parsing fails (e.g., \"abc\" for int type).\n\nExample:\n\n\tid, err := echo.PathParamOr[int](c, \"id\", 0)\n\t// If \"id\" is missing: returns (0, nil)\n\t// If \"id\" is \"123\": returns (123, nil)\n\t// If \"id\" is \"abc\": returns (0, BindingError)\n\nSee ParseValue for supported types and options\n\n```go\nfunc QueryParam[T any](c *Context, key string, opts ...any) (T, error)\n```\nQueryParam extracts and parses a single query parameter from the request by key. It returns the typed value and an error if binding fails. Returns ErrNonExistentKey if parameter not found.\n\nEmpty String Handling:\n\n\tIf the parameter exists but has an empty value (?key=), the zero value of type T is returned\n\twith no error. For example, \"?count=\" returns (0, nil) for int types.\n\tThis differs from standard library behavior where parsing empty strings returns errors.\n\tTo treat empty values as errors, validate the result separately or check the raw value.\n\nBehavior Summary:\n\n  - Missing key (?other=value): returns (zero, ErrNonExistentKey)\n  - Empty value (?key=): returns (zero, nil)\n  - Invalid value (?key=abc for int): returns (zero, BindingError)\n\nSee ParseValue for supported types and options\n\n```go\nfunc QueryParamOr[T any](c *Context, key string, defaultValue T, opts ...any) (T, error)\n```\nQueryParamOr extracts and parses a single query parameter from the request by key. Returns defaultValue if the parameter is not found or has an empty value. Returns an error only if parsing fails (e.g., \"abc\" for int type).\n\nExample:\n\n\tpage, err := echo.QueryParamOr[int](c, \"page\", 1)\n\t// If \"page\" is missing: returns (1, nil)\n\t// If \"page\" is \"5\": returns (5, nil)\n\t// If \"page\" is \"abc\": returns (1, BindingError)\n\nSee ParseValue for supported types and options\n\n```go\nfunc QueryParams[T any](c *Context, key string, opts ...any) ([]T, error)\n```\nQueryParams extracts and parses all values for a query parameter key as a slice. It returns the typed slice and an error if binding any value fails. Returns ErrNonExistentKey if parameter not found.\n\nSee ParseValues for supported types and options\n\n```go\nfunc QueryParamsOr[T any](c *Context, key string, defaultValue []T, opts ...any) ([]T, error)\n```\nQueryParamsOr extracts and parses all values for a query parameter key as a slice. Returns defaultValue if the parameter is not found. Returns an error only if parsing any value fails.\n\nExample:\n\n\tids, err := echo.QueryParamsOr[int](c, \"ids\", []int{})\n\t// If \"ids\" is missing: returns ([], nil)\n\t// If \"ids\" is \"1\u0026ids=2\": returns ([1, 2], nil)\n\t// If \"ids\" contains \"abc\": returns ([], BindingError)\n\nSee ParseValues for supported types and options\n\n```go\nfunc StatusCode(err error) int\n```\nStatusCode returns status code from err if it implements HTTPStatusCoder interface. If err does not implement the interface, it returns 0.\n\n## Types\n\n```go\ntype AddRouteError struct {\n\tErr    error\n\tMethod string\n\tPath   string\n}\n```\nAddRouteError is error returned by Router.Add containing information what actual route adding failed. Useful for mass adding (i.e. Match() routes)\n\n```go\nfunc (e *AddRouteError) Error() string\n```\n\n```go\nfunc (e *AddRouteError) Unwrap() error\n```\n\n```go\ntype BindUnmarshaler interface {\n\t// UnmarshalParam decodes and assigns a value from an form or query param.\n\tUnmarshalParam(param string) error\n}\n```\nBindUnmarshaler is the interface used to wrap the UnmarshalParam method. Types that don't implement this, but do implement encoding.TextUnmarshaler will use that interface instead.\n\n```go\ntype Binder interface {\n\tBind(c *Context, target any) error\n}\n```\nBinder is the interface that wraps the Bind method.\n\n```go\ntype BindingError struct {\n\t// Field is the field name where value binding failed\n\tField string `json:\"field\"`\n\t*HTTPError\n\t// Values of parameter that failed to bind.\n\tValues []string `json:\"-\"`\n}\n```\nBindingError represents an error that occurred while binding request data.\n\nNote: JSON serialization is handled by the MarshalJSON method below, not by the struct tags (which are kept for documentation). MarshalJSON emits {\"field\",\"message\"}.\n\n```go\nfunc (be *BindingError) Error() string\n```\nError returns error message\n\n```go\nfunc (be *BindingError) MarshalJSON() ([]byte, error)\n```\nMarshalJSON implements json.Marshaler so that binding errors are serialized into a structured response (e.g. {\"field\":\"id\",\"message\":\"...\"}) rather than being flattened to a generic message. DefaultHTTPErrorHandler routes errors that implement json.Marshaler through their own encoding.\n\n```go\ntype Config struct {\n\t// Logger is the slog logger instance used for application-wide structured logging.\n\t// If not set, a default TextHandler writing to stdout is created.\n\tLogger *slog.Logger\n\n\t// HTTPErrorHandler is the centralized error handler that processes errors returned\n\t// by handlers and middleware, converting them to appropriate HTTP responses.\n\t// If not set, DefaultHTTPErrorHandler(false) is used.\n\tHTTPErrorHandler HTTPErrorHandler\n\n\t// Router is the HTTP request router responsible for matching URLs to handlers\n\t// using a radix tree-based algorithm.\n\t// If not set, NewRouter(RouterConfig{}) is used.\n\tRouter Router\n\n\t// OnAddRoute is an optional callback hook executed when routes are registered.\n\t// Useful for route validation, logging, or custom route processing.\n\t// If not set, no callback is executed.\n\tOnAddRoute func(route Route) error\n\n\t// Filesystem is the fs.FS implementation used for serving static files.\n\t// Supports os.DirFS, embed.FS, and custom implementations.\n\t// If not set, defaults to current working directory.\n\tFilesystem fs.FS\n\n\t// Binder handles automatic data binding from HTTP requests to Go structs.\n\t// Supports JSON, XML, form data, query parameters, and path parameters.\n\t// If not set, DefaultBinder is used.\n\tBinder Binder\n\n\t// Validator provides optional struct validation after data binding.\n\t// Commonly used with third-party validation libraries.\n\t// If not set, Context.Validate() returns ErrValidatorNotRegistered.\n\tValidator Validator\n\n\t// Renderer provides template rendering for generating HTML responses.\n\t// Requires integration with a template engine like html/template.\n\t// If not set, Context.Render() returns ErrRendererNotRegistered.\n\tRenderer Renderer\n\n\t// JSONSerializer handles JSON encoding and decoding for HTTP requests/responses.\n\t// Can be replaced with faster alternatives like jsoniter or sonic.\n\t// If not set, DefaultJSONSerializer using encoding/json is used.\n\tJSONSerializer JSONSerializer\n\n\t// IPExtractor defines the strategy for extracting the real client IP address\n\t// from requests, particularly important when behind proxies or load balancers.\n\t// Used for rate limiting, access control, and logging.\n\t// If not set, the address of the direct peer (http.Request.RemoteAddr) is used.\n\tIPExtractor IPExtractor\n\n\t// SchemeExtractor defines the strategy for determining the request scheme (`http` or `https`),\n\t// particularly important when behind proxies or load balancers that terminate TLS.\n\t// Used by Context.Scheme and by the HTTPS redirect, Secure and Proxy middlewares.\n\t// If not set, forwarding headers such as `X-Forwarded-Proto` are trusted only from loopback, link-local and\n\t// private network addresses and unix sockets. See ExtractSchemeFromHeaders.\n\tSchemeExtractor SchemeExtractor\n\n\t// FormParseMaxMemory is default value for memory limit that is used\n\t// when parsing multipart forms (See (*http.Request).ParseMultipartForm)\n\tFormParseMaxMemory int64\n\n\t// EnablePathUnescapingStaticFiles enables path parameter (param: *) unescaping for static file methods.\n\t// Default false (safe): encoded slashes (%2f) in the wildcard param are NOT decoded,\n\t// preventing ACL bypass where /admin%2fprivate.txt bypasses a /admin/* route guard by\n\t// not matching that route but having its wildcard param decoded to admin/private.txt.\n\t// Set to true only when serving files whose names contain URL-encoded characters\n\t// (e.g. \"hello world.txt\" via /hello%20world.txt) and you are not relying on\n\t// route-based ACL guards to restrict access.\n\t// If you are enabling this option, make sure you understand the security implications.\n\t// See: https://github.com/labstack/echo/security/advisories/GHSA-vfp3-v2gw-7wfq\n\t//\n\t// Enabling RouterConfig.UseEscapedPathForMatching makes this field irrelevant and can lead to security issues when\n\t// using different Routes to exclude some of the files from being served.\n\t// e.g. if you serve files from directory as such and use different route to exclude some of the files from being served.\n\t// 0. given folder structure:\n\t//   public/\n\t//   public/index.html\n\t//   public/admin/private.txt\n\t// 1. share `public/` folder contents from the server root with `e.Static(\"/\", \"public\")`\n\t// 2. naively assume that everything under /admin folder is now forbidden\n\t//       e.GET(\"/admin/*\", func(c *Context) error { return echo.ErrForbidden })\n\t// Then request to `/assets/../admin%2fprivate.txt` will be served as router does not match it to guarded route.\n\t//\n\t// Applies to methods: Echo.Static, Echo.StaticFS, Group.Static, Group.StaticFS.\n\tEnablePathUnescapingStaticFiles bool\n\n\t// NoGroupAutoRegister404Routes bool is a flag that indicates whether echo.Group should NOT register 404 routes automatically\n\t// when there are middlewares registered with the group.\n\t// Note: if you decide not to register 404 routes automatically, make sure to check if all your middlewares are executed\n\t// as expected. For example - CORS middleware.\n\tNoGroupAutoRegister404Routes bool\n}\n```\nConfig is configuration for NewWithConfig function\n\n```go\ntype Context struct {\n\t// contains filtered or unexported fields\n}\n```\nContext represents the context of the current HTTP request. It holds request and response objects, path, path parameters, data and registered handler.\n\n```go\nfunc NewContext(r *http.Request, w http.ResponseWriter, opts ...any) *Context\n```\nNewContext returns a new Context instance.\n\nNote: request,response and e can be left to nil as Echo.ServeHTTP will call c.Reset(req,resp) anyway these arguments are useful when creating context for tests and cases like that.\n\n```go\nfunc (c *Context) Attachment(file, name string) error\n```\nAttachment sends a response as attachment, prompting client to save the file.\n\nAvoid using the leading \\`/\\` slash as most of the Go standard library fs.FS implementations require relative paths for file operations.\n\n```go\nfunc (c *Context) Bind(i any) error\n```\nBind binds path params, query params and the request body into provided type \\`i\\`. The default binder binds body based on Content-Type header.\n\n```go\nfunc (c *Context) Blob(code int, contentType string, b []byte) (err error)\n```\nBlob sends a blob response with status code and content type.\n\n```go\nfunc (c *Context) Cookie(name string) (*http.Cookie, error)\n```\nCookie returns the named cookie provided in the request.\n\n```go\nfunc (c *Context) Cookies() []*http.Cookie\n```\nCookies returns the HTTP cookies sent with the request.\n\n```go\nfunc (c *Context) Echo() *Echo\n```\nEcho returns the \\`Echo\\` instance.\n\n```go\nfunc (c *Context) File(file string) error\n```\nFile sends a response with the content of the file.\n\nAvoid using the leading \\`/\\` slash as most of the Go standard library fs.FS implementations require relative paths for file operations.\n\n```go\nfunc (c *Context) FileFS(file string, filesystem fs.FS) error\n```\nFileFS serves file from given file system.\n\nWhen dealing with \\`embed.FS\\` use \\`fs := echo.MustSubFS(fs, \"rootDirectory\") to create sub fs which uses necessary prefix for directory path. This is necessary as \\`//go:embed assets/images\\` embeds files with paths including \\`assets/images\\` as their prefix.\n\n```go\nfunc (c *Context) FormFile(name string) (*multipart.FileHeader, error)\n```\nFormFile returns the multipart form file for the provided name.\n\n```go\nfunc (c *Context) FormValue(name string) string\n```\nFormValue returns the form field value for the provided name.\n\n```go\nfunc (c *Context) FormValueOr(name, defaultValue string) string\n```\nFormValueOr returns the form field value or default value for the provided name. Note: FormValueOr does not distinguish if form had no value by that name or value was empty string\n\n```go\nfunc (c *Context) FormValues() (url.Values, error)\n```\nFormValues returns the form field values as \\`url.Values\\`.\n\n```go\nfunc (c *Context) Get(key string) any\n```\nGet retrieves data from the context. Method returns any(nil) when key does not exist which is different from typed nil (eg. \\[]byte(nil)).\n\n```go\nfunc (c *Context) HTML(code int, html string) (err error)\n```\nHTML sends an HTTP response with status code.\n\n```go\nfunc (c *Context) HTMLBlob(code int, b []byte) (err error)\n```\nHTMLBlob sends an HTTP blob response with status code.\n\n```go\nfunc (c *Context) InitializeRoute(ri *RouteInfo, pathValues *PathValues)\n```\nInitializeRoute sets the route related variables of this request to the context.\n\n```go\nfunc (c *Context) Inline(file, name string) error\n```\nInline sends a response as inline, opening the file in the browser.\n\nAvoid using the leading \\`/\\` slash as most of the Go standard library fs.FS implementations require relative paths for file operations.\n\n```go\nfunc (c *Context) IsTLS() bool\n```\nIsTLS returns true if HTTP connection is TLS otherwise false.\n\n```go\nfunc (c *Context) IsWebSocket() bool\n```\nIsWebSocket returns true if HTTP connection is WebSocket otherwise false.\n\n```go\nfunc (c *Context) JSON(code int, i any) (err error)\n```\nJSON sends a JSON response with status code.\n\n```go\nfunc (c *Context) JSONBlob(code int, b []byte) (err error)\n```\nJSONBlob sends a JSON blob response with status code.\n\n```go\nfunc (c *Context) JSONP(code int, callback string, i any) (err error)\n```\nJSONP sends a JSONP response with status code. It uses \\`callback\\` to construct the JSONP payload.\n\nThe callback must be empty, a JavaScript identifier or a dot-separated path of identifiers using only ASCII letters, digits, \\`\\_\\` and \\`$\\`. Otherwise nothing is written and a 400 Bad Request error wrapping ErrInvalidJSONPCallback is returned. The response has the \\`X-Content-Type-Options: nosniff\\` header.\n\nAny website can load a JSONP response with a \\\u003cscript\u003e tag, including the user's cookies. Do not use JSONP for data that requires authentication; use JSON with CORS instead.\n\n```go\nfunc (c *Context) JSONPBlob(code int, callback string, b []byte) (err error)\n```\nJSONPBlob sends a JSONP blob response with status code. It uses \\`callback\\` to construct the JSONP payload. The callback is validated like in Context.JSONP.\n\n```go\nfunc (c *Context) JSONPretty(code int, i any, indent string) (err error)\n```\nJSONPretty sends a pretty-print JSON with status code.\n\n```go\nfunc (c *Context) Logger() *slog.Logger\n```\nLogger returns logger in Context\n\n```go\nfunc (c *Context) MultipartForm() (*multipart.Form, error)\n```\nMultipartForm returns the multipart form.\n\n```go\nfunc (c *Context) NoContent(code int) error\n```\nNoContent sends a response with no body and a status code.\n\n```go\nfunc (c *Context) Param(name string) string\n```\nParam returns path parameter by name.\n\n```go\nfunc (c *Context) ParamOr(name, defaultValue string) string\n```\nParamOr returns the path parameter or default value for the provided name.\n\nNotes for DefaultRouter implementation: Path parameter could be empty for cases like that: \\* route \\`/release-:version/bin\\` and request URL is \\`/release-/bin\\` \\* route \\`/api/:version/image.jpg\\` and request URL is \\`/api//image.jpg\\` but not when path parameter is last part of route path \\* route \\`/download/file.:ext\\` will not match request \\`/download/file.\\`\n\n```go\nfunc (c *Context) Path() string\n```\nPath returns the registered path for the handler.\n\n```go\nfunc (c *Context) PathValues() PathValues\n```\nPathValues returns path parameter values.\n\n```go\nfunc (c *Context) QueryParam(name string) string\n```\nQueryParam returns the query param for the provided name.\n\n```go\nfunc (c *Context) QueryParamOr(name, defaultValue string) string\n```\nQueryParamOr returns the query param or default value for the provided name. Note: QueryParamOr does not distinguish if query had no value by that name or value was empty string This means URLs \\`/test?search=\\` and \\`/test\\` would both return \\`1\\` for \\`c.QueryParamOr(\"search\", \"1\")\\`\n\n```go\nfunc (c *Context) QueryParams() url.Values\n```\nQueryParams returns the query parameters as \\`url.Values\\`.\n\n```go\nfunc (c *Context) QueryString() string\n```\nQueryString returns the URL query string.\n\n```go\nfunc (c *Context) RealIP() string\n```\nRealIP returns the client IP address using the configured extraction strategy.\n\nIf Echo#IPExtractor is set, it is used to resolve the client IP from the incoming request (typically via proxy headers such as X-Forwarded-For or X-Real-IP). Look into the \\`ip.go\\` file for comments and examples.\n\nSee:\n\n  - Echo#ExtractIPFromXFFHeader for \\`X-Forwarded-For\\` handling with trust checks\n  - Echo#ExtractIPFromRealIPHeader for \\`X-Real-IP\\` handling with trust checks\n  - Echo#LegacyIPExtractor for \\`v4\\` compatibility (spoofable, no trust checks built in)\n\nIf no extractor is configured, RealIP falls back to the request RemoteAddr, returning only the host portion.\n\nNotes:\n\n  - No validation or trust enforcement is performed unless implemented by the configured IPExtractor.\n  - When relying on proxy headers, ensure the application is deployed behind trusted intermediaries to avoid spoofing.\n\n```go\nfunc (c *Context) Redirect(code int, url string) error\n```\nRedirect redirects the request to a provided URL with status code.\n\n```go\nfunc (c *Context) Render(code int, name string, data any) (err error)\n```\nRender renders a template with data and sends a text/html response with status code. Renderer must be registered using \\`Echo.Renderer\\`.\n\n```go\nfunc (c *Context) Request() *http.Request\n```\nRequest returns \\`\\*http.Request\\`.\n\n```go\nfunc (c *Context) Reset(r *http.Request, w http.ResponseWriter)\n```\nReset resets the context after request completes. It must be called along with \\`Echo#AcquireContext()\\` and \\`Echo#ReleaseContext()\\`. See \\`Echo#ServeHTTP()\\`\n\n```go\nfunc (c *Context) Response() http.ResponseWriter\n```\nResponse returns \\`\\*Response\\`.\n\n```go\nfunc (c *Context) RouteInfo() RouteInfo\n```\nRouteInfo returns current request route information. Method, Path, Name and params if they exist for matched route.\n\nRouteInfo returns generic \"empty\" struct for these cases: \\* Context is accessed before Routing is done. For example inside Pre middlewares (\\`e.Pre()\\`) \\* Router did not find matching route - 404 (route not found) \\* Router did not find matching route with same method - 405 (method not allowed)\n\n```go\nfunc (c *Context) Scheme() string\n```\nScheme returns the protocol scheme in lowercase: \\`http\\` or \\`https\\`, or \\`ws\\` or \\`wss\\` when a trusted proxy reports them.\n\nEcho#SchemeExtractor decides how the scheme is determined. When it is not set, the forwarding headers (\\`X-Forwarded-Proto\\`, \\`X-Forwarded-Protocol\\`, \\`X-Forwarded-Ssl\\` and \\`X-Url-Scheme\\`) are used only for requests that come directly from a loopback, link-local or private network address or a unix socket. See ExtractSchemeFromHeaders.\n\n```go\nfunc (c *Context) Set(key string, val any)\n```\nSet saves data in the context.\n\n```go\nfunc (c *Context) SetCookie(cookie *http.Cookie)\n```\nSetCookie adds a \\`Set-Cookie\\` header in HTTP response.\n\n```go\nfunc (c *Context) SetLogger(logger *slog.Logger)\n```\nSetLogger sets logger in Context\n\n```go\nfunc (c *Context) SetPath(p string)\n```\nSetPath sets the registered path for the handler.\n\n```go\nfunc (c *Context) SetPathValues(pathValues PathValues)\n```\nSetPathValues sets path parameters for current request.\n\n```go\nfunc (c *Context) SetRequest(r *http.Request)\n```\nSetRequest sets \\`\\*http.Request\\`.\n\n```go\nfunc (c *Context) SetResponse(r http.ResponseWriter)\n```\nSetResponse sets \\`\\*http.ResponseWriter\\`. Some context methods and/or middleware require that given ResponseWriter implements following method \\`Unwrap() http.ResponseWriter\\` which eventually should return \\*echo.Response instance.\n\n```go\nfunc (c *Context) Stream(code int, contentType string, r io.Reader) (err error)\n```\nStream sends a streaming response with status code and content type.\n\n```go\nfunc (c *Context) String(code int, s string) (err error)\n```\nString sends a string response with status code.\n\n```go\nfunc (c *Context) Validate(i any) error\n```\nValidate validates provided \\`i\\`. It is usually called after \\`Context#Bind()\\`. Validator must be registered using \\`Echo#Validator\\`.\n\n```go\nfunc (c *Context) ValidateCtx(i any) error\n```\nValidateCtx validates i using the current request's context. If the registered Validator implements ValidateCtx(context.Context, any) error, that method is called instead of Validate. Otherwise, Validate is called.\n\nThe validator must still implement Validate to satisfy the Validator interface. Wrappers that embed a context-aware validator must implement ValidateCtx if they need to preserve checks performed by their own Validate method.\n\nIf there is no request, context.Background() is used. Cancellation and deadlines are passed to the validator; the validator is responsible for honoring them.\n\n```go\nfunc (c *Context) XML(code int, i any) (err error)\n```\nXML sends an XML response with status code.\n\n```go\nfunc (c *Context) XMLBlob(code int, b []byte) (err error)\n```\nXMLBlob sends an XML blob response with status code.\n\n```go\nfunc (c *Context) XMLPretty(code int, i any, indent string) (err error)\n```\nXMLPretty sends a pretty-print XML with status code.\n\n```go\ntype DefaultBinder struct{}\n```\nDefaultBinder is the default implementation of the Binder interface. For path, query, header, and form binding, time.Time and \\*time.Time fields (not slices) may use a format tag: \"date-time\" uses the standard RFC3339 decoding, \"date-time-local\" accepts \"2006-01-02T15:04:05\" with optional fractional seconds, \"date\" accepts \"2006-01-02\", and other values specify Go time layouts. \"date\", \"date-time-local\", and layouts without a timezone give UTC times. JSON and XML decoding do not use this tag. HTML datetime-local inputs omit seconds by default, so bind them with a Go layout such as \"2006-01-02T15:04\" instead of \"date-time-local\".\n\n```go\nfunc (b *DefaultBinder) Bind(c *Context, target any) error\n```\nBind implements the \\`Binder#Bind\\` function. Binding is done in following order: 1) path params; 2) query params; 3) request body. Each step COULD override previous step bound values. For single source binding use their own methods BindBody, BindQueryParams, BindPathValues.\n\n```go\ntype DefaultJSONSerializer struct{}\n```\nDefaultJSONSerializer implements JSON encoding using encoding/json.\n\n```go\nfunc (d DefaultJSONSerializer) Deserialize(c *Context, target any) error\n```\nDeserialize reads a JSON from a request body and converts it into an interface.\n\nThe body is read into a pooled buffer and decoded with json.Unmarshal rather than streaming through json.NewDecoder. This avoids allocating a decoder and its internal read buffer on every request. json.Unmarshal does not retain a reference to the input slice, so the buffer is safe to reuse afterwards.\n\nNote: the full request body is read into memory before decoding. As with any JSON parser, decoding untrusted input can allocate large amounts of memory; guard such endpoints with middleware.BodyLimit (or http.MaxBytesReader), which makes the body read here fail fast once the limit is exceeded.\n\n```go\nfunc (d DefaultJSONSerializer) Serialize(c *Context, target any, indent string) error\n```\nSerialize converts an interface into a json and writes it to the response. You can optionally use the indent parameter to produce pretty JSONs.\n\n```go\ntype DefaultRouter struct {\n\t// contains filtered or unexported fields\n}\n```\nDefaultRouter is the registry of all registered routes for an \\`Echo\\` instance for request matching and URL path parameter parsing. Note: DefaultRouter is not coroutine-safe. Do not Add/Remove routes after HTTP server has been started with Echo.\n\n```go\nfunc NewRouter(config RouterConfig) *DefaultRouter\n```\nNewRouter returns a new Router instance.\n\n```go\nfunc (r *DefaultRouter) Add(route Route) (RouteInfo, error)\n```\nAdd registers a new route for method and path with matching handler.\n\n```go\nfunc (r *DefaultRouter) Remove(method string, path string) error\n```\nRemove unregisters registered route\n\n```go\nfunc (r *DefaultRouter) Route(c *Context) HandlerFunc\n```\nRoute looks up a handler registered for method and path. It also parses URL for path parameters and loads them into context.\n\nFor performance:\n\n\\- Get context from \\`Echo#AcquireContext()\\` - Reset it \\`Context#Reset()\\` - Return it \\`Echo#ReleaseContext()\\`.\n\n```go\nfunc (r *DefaultRouter) Routes() Routes\n```\nRoutes returns all registered routes\n\n```go\ntype Echo struct {\n\tBinder Binder\n\n\t// Filesystem is the file system used for serving static files. Defaults to the current working directory (os.Getwd()).\n\t//\n\t// Note: fs.FS.Open() already assumes that file names are relative to FS root path and considers name with prefix `/` as invalid\n\t// so if you have `fs := os.DirFS(\"/tmp\")` and you try to `fs.Open(\"/tmp/file.txt\")` it will fail, but \"file.txt\"\n\t// would succeed. `echo.NewDefaultFS(\"/tmp\")` overwrites this behavior and allows you to use Open with a matching\n\t// absolute path prefix.\n\tFilesystem fs.FS\n\n\tRenderer         Renderer\n\tValidator        Validator\n\tJSONSerializer   JSONSerializer\n\tIPExtractor      IPExtractor\n\tSchemeExtractor  SchemeExtractor\n\tOnAddRoute       func(route Route) error\n\tHTTPErrorHandler HTTPErrorHandler\n\tLogger           *slog.Logger\n\t// contains filtered or unexported fields\n}\n```\nEcho is the top-level framework instance.\n\nGoroutine safety: Do not mutate Echo instance fields after server has started. Accessing these fields from handlers/middlewares and changing field values at the same time leads to data-races. Same rule applies to adding new routes after server has been started - Adding a route is not Goroutine safe action.\n\n```go\nfunc New() *Echo\n```\nNew creates an instance of Echo.\n\n```go\nfunc NewVirtualHostHandler(vhosts map[string]*Echo) *Echo\n```\nNewVirtualHostHandler creates instance of Echo that routes requests to given virtual hosts when hosts in request does not exist in given map the request is served by returned Echo instance.\n\n```go\nfunc NewWithConfig(config Config) *Echo\n```\nNewWithConfig creates an instance of Echo with given configuration.\n\n```go\nfunc (e *Echo) AcquireContext() *Context\n```\nAcquireContext returns an empty \\`Context\\` instance from the pool. You must return the context by calling \\`ReleaseContext()\\`.\n\n```go\nfunc (e *Echo) Add(method, path string, handler HandlerFunc, middleware ...MiddlewareFunc) RouteInfo\n```\nAdd registers a new route for an HTTP method and path with matching handler in the router with optional route-level middleware.\n\n```go\nfunc (e *Echo) AddRoute(route Route) (RouteInfo, error)\n```\nAddRoute registers a new Route with default host Router\n\n```go\nfunc (e *Echo) Any(path string, handler HandlerFunc, middleware ...MiddlewareFunc) RouteInfo\n```\nAny registers a new route for a path with matching handler in the router with optional route-level middleware. Panics on error. The route matches any HTTP method in the request, including methods not known to Echo, by registering a single RouteAny route.\n\nA method-specific route registered for the same path takes precedence over the Any route.\n\n```go\nfunc (e *Echo) CONNECT(path string, h HandlerFunc, m ...MiddlewareFunc) RouteInfo\n```\nCONNECT registers a new CONNECT route for a path with matching handler in the router with optional route-level middleware. Panics on error.\n\n```go\nfunc (e *Echo) DELETE(path string, h HandlerFunc, m ...MiddlewareFunc) RouteInfo\n```\nDELETE registers a new DELETE route for a path with matching handler in the router with optional route-level middleware. Panics on error.\n\n```go\nfunc (e *Echo) File(path, file string, middleware ...MiddlewareFunc) RouteInfo\n```\nFile registers a new route with path to serve a static file with optional route-level middleware. Panics on error.\n\nAvoid using the leading \\`/\\` slash as most of the Go standard library fs.FS implementations require relative paths for file operations.\n\n```go\nfunc (e *Echo) FileFS(path, file string, filesystem fs.FS, m ...MiddlewareFunc) RouteInfo\n```\nFileFS registers a new route with path to serve file from the provided file system.\n\nAvoid using the leading \\`/\\` slash as most of the Go standard library fs.FS implementations require relative paths for file operations.\n\n```go\nfunc (e *Echo) GET(path string, h HandlerFunc, m ...MiddlewareFunc) RouteInfo\n```\nGET registers a new GET route for a path with matching handler in the router with optional route-level middleware. Panics on error.\n\n```go\nfunc (e *Echo) Group(prefix string, m ...MiddlewareFunc) (g *Group)\n```\nGroup creates a new router group with prefix and optional group-level middleware. The prefix is concatenated with each route path without inserting a slash. For example:\n\n\tg := e.Group(\"/v1\")\n\tg.GET(\"/posts\", handler) // Registers /v1/posts.\n\tg.GET(\"posts\", handler)  // Registers /v1posts.\n\n```go\nfunc (e *Echo) HEAD(path string, h HandlerFunc, m ...MiddlewareFunc) RouteInfo\n```\nHEAD registers a new HEAD route for a path with matching handler in the router with optional route-level middleware. Panics on error.\n\n```go\nfunc (e *Echo) Match(methods []string, path string, handler HandlerFunc, middleware ...MiddlewareFunc) Routes\n```\nMatch registers a new route for multiple HTTP methods and path with matching handler in the router with optional route-level middleware. Panics on error.\n\n```go\nfunc (e *Echo) Middlewares() []MiddlewareFunc\n```\nMiddlewares returns registered route level middlewares. Does not contain any group level middlewares. Use this method to build your own ServeHTTP method.\n\nNOTE: returned slice is not a copy. Do not mutate.\n\n```go\nfunc (e *Echo) NewContext(r *http.Request, w http.ResponseWriter) *Context\n```\nNewContext returns a new Context instance.\n\nNote: both request and response can be left to nil as Echo.ServeHTTP will call c.Reset(req,resp) anyway these arguments are useful when creating context for tests and cases like that.\n\n```go\nfunc (e *Echo) OPTIONS(path string, h HandlerFunc, m ...MiddlewareFunc) RouteInfo\n```\nOPTIONS registers a new OPTIONS route for a path with matching handler in the router with optional route-level middleware. Panics on error.\n\n```go\nfunc (e *Echo) PATCH(path string, h HandlerFunc, m ...MiddlewareFunc) RouteInfo\n```\nPATCH registers a new PATCH route for a path with matching handler in the router with optional route-level middleware. Panics on error.\n\n```go\nfunc (e *Echo) POST(path string, h HandlerFunc, m ...MiddlewareFunc) RouteInfo\n```\nPOST registers a new POST route for a path with matching handler in the router with optional route-level middleware. Panics on error.\n\n```go\nfunc (e *Echo) PUT(path string, h HandlerFunc, m ...MiddlewareFunc) RouteInfo\n```\nPUT registers a new PUT route for a path with matching handler in the router with optional route-level middleware. Panics on error.\n\n```go\nfunc (e *Echo) Pre(middleware ...MiddlewareFunc)\n```\nPre adds middleware to the chain which is run before router tries to find matching route. Meaning middleware is executed even for 404 (not found) cases.\n\n```go\nfunc (e *Echo) PreMiddlewares() []MiddlewareFunc\n```\nPreMiddlewares returns registered pre middlewares. These are middleware to the chain which are run before router tries to find matching route. Use this method to build your own ServeHTTP method.\n\nNOTE: returned slice is not a copy. Do not mutate.\n\n```go\nfunc (e *Echo) QUERY(path string, h HandlerFunc, m ...MiddlewareFunc) RouteInfo\n```\nQUERY registers a new QUERY route for a path with matching handler in the router with optional route-level middleware. Panics on error.\n\n```go\nfunc (e *Echo) ReleaseContext(c *Context)\n```\nReleaseContext returns the \\`Context\\` instance back to the pool. You must call it after \\`AcquireContext()\\`.\n\n```go\nfunc (e *Echo) RouteNotFound(path string, h HandlerFunc, m ...MiddlewareFunc) RouteInfo\n```\nRouteNotFound registers a special-case route which is executed when no other route is found (i.e. HTTP 404 cases) for current request URL. Path supports static and named/any parameters just like other http method is defined. Generally path is ended with wildcard/match-any character (\\`/\\*\\`, \\`/download/\\*\\` etc).\n\nExample: \\`e.RouteNotFound(\"/\\*\", func(c \\*echo.Context) error { return c.NoContent(http.StatusNotFound) })\\`\n\n```go\nfunc (e *Echo) Router() Router\n```\nRouter returns the default router.\n\n```go\nfunc (e *Echo) ServeHTTP(w http.ResponseWriter, r *http.Request)\n```\nServeHTTP implements \\`http.Handler\\` interface, which serves HTTP requests.\n\n```go\nfunc (e *Echo) Start(address string) error\n```\nStart stars HTTP server on given address with Echo as a handler serving requests. The server can be shutdown by sending os.Interrupt signal with \\`ctrl+c\\`. Method returns only errors that are not http.ErrServerClosed.\n\nNote: this method is created for use in examples/demos and is deliberately simple without providing configuration options.\n\nIn need of customization use:\n\n\tctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM)\n\tdefer cancel()\n\tsc := echo.StartConfig{Address: \":8080\"}\n\tif err := sc.Start(ctx, e); err != nil \u0026\u0026 !errors.Is(err, http.ErrServerClosed) {\n\t\tslog.Error(err.Error())\n\t}\n\n// or standard library \\`http.Server\\`\n\n\ts := http.Server{Addr: \":8080\", Handler: e}\n\tif err := s.ListenAndServe(); err != nil \u0026\u0026 !errors.Is(err, http.ErrServerClosed) {\n\t\tslog.Error(err.Error())\n\t}\n\n```go\nfunc (e *Echo) Static(pathPrefix, fsRoot string, middleware ...MiddlewareFunc) RouteInfo\n```\nStatic registers a new route with path prefix to serve static files from the provided root directory.\n\nA pathPrefix without a trailing slash, such as \"/assets\", serves \"/assets\" (redirected to \"/assets/\") and the paths below \"/assets/\", but not sibling paths such as \"/assetsadmin/file\".\n\n```go\nfunc (e *Echo) StaticFS(pathPrefix string, filesystem fs.FS, middleware ...MiddlewareFunc) RouteInfo\n```\nStaticFS registers a new route with path prefix to serve static files from the provided file system.\n\nWhen dealing with \\`embed.FS\\` use \\`fs := echo.MustSubFS(fs, \"rootDirectory\") to create sub fs which uses necessary prefix for directory path. This is necessary as \\`//go:embed assets/images\\` embeds files with paths including \\`assets/images\\` as their prefix.\n\n```go\nfunc (e *Echo) TRACE(path string, h HandlerFunc, m ...MiddlewareFunc) RouteInfo\n```\nTRACE registers a new TRACE route for a path with matching handler in the router with optional route-level middleware. Panics on error.\n\n```go\nfunc (e *Echo) Use(middleware ...MiddlewareFunc)\n```\nUse adds middleware to the chain which is run after router has found matching route and before route/request handler method is executed.\n\n```go\ntype Group struct {\n\t// contains filtered or unexported fields\n}\n```\nGroup is a set of sub-routes for a specified route. It can be used for inner routes that share a common middleware or functionality that should be separate from the parent echo instance while still inheriting from it.\n\n```go\nfunc (g *Group) Add(method, path string, handler HandlerFunc, middleware ...MiddlewareFunc) RouteInfo\n```\nAdd implements \\`Echo#Add()\\` for sub-routes within the Group. Panics on error.\n\n```go\nfunc (g *Group) AddRoute(route Route) (RouteInfo, error)\n```\nAddRoute registers a new Routable with Router\n\n```go\nfunc (g *Group) Any(path string, handler HandlerFunc, middleware ...MiddlewareFunc) RouteInfo\n```\nAny implements \\`Echo#Any()\\` for sub-routes within the Group. Panics on error.\n\n```go\nfunc (g *Group) CONNECT(path string, h HandlerFunc, m ...MiddlewareFunc) RouteInfo\n```\nCONNECT implements \\`Echo#CONNECT()\\` for sub-routes within the Group. Panics on error.\n\n```go\nfunc (g *Group) DELETE(path string, h HandlerFunc, m ...MiddlewareFunc) RouteInfo\n```\nDELETE implements \\`Echo#DELETE()\\` for sub-routes within the Group. Panics on error.\n\n```go\nfunc (g *Group) File(path, file string, middleware ...MiddlewareFunc) RouteInfo\n```\nFile implements \\`Echo#File()\\` for sub-routes within the Group. Panics on error.\n\nAvoid using the leading \\`/\\` slash as most of the Go standard library fs.FS implementations require relative paths for file operations.\n\n```go\nfunc (g *Group) FileFS(path, file string, filesystem fs.FS, m ...MiddlewareFunc) RouteInfo\n```\nFileFS implements \\`Echo#FileFS()\\` for sub-routes within the Group.\n\nAvoid using the leading \\`/\\` slash as most of the Go standard library fs.FS implementations require relative paths for file operations.\n\n```go\nfunc (g *Group) GET(path string, h HandlerFunc, m ...MiddlewareFunc) RouteInfo\n```\nGET implements \\`Echo#GET()\\` for sub-routes within the Group. Panics on error.\n\n```go\nfunc (g *Group) Group(prefix string, middleware ...MiddlewareFunc) (sg *Group)\n```\nGroup creates a new sub-group with prefix and optional sub-group-level middleware. The prefix is concatenated with the parent group's prefix without inserting a slash. For example, a parent prefix of \"/v1\" and a sub-group prefix of \"/admin\" form \"/v1/admin\".\n\nImportant! Group middlewares are executed in case there was no exact route match as by default Group registers \\`/\\*\\` NotFound routes for itself. If this kind of behavior is not needed, then create an Echo instance with the \\` noAutoRegisterRoutes \\` flag set to true. Example \\`echo.NewWithConfig(echo.Config{NoGroupAutoRegister404Routes: true})\\`.\n\n```go\nfunc (g *Group) HEAD(path string, h HandlerFunc, m ...MiddlewareFunc) RouteInfo\n```\nHEAD implements \\`Echo#HEAD()\\` for sub-routes within the Group. Panics on error.\n\n```go\nfunc (g *Group) Match(methods []string, path string, handler HandlerFunc, middleware ...MiddlewareFunc) Routes\n```\nMatch implements \\`Echo#Match()\\` for sub-routes within the Group. Panics on error.\n\n```go\nfunc (g *Group) OPTIONS(path string, h HandlerFunc, m ...MiddlewareFunc) RouteInfo\n```\nOPTIONS implements \\`Echo#OPTIONS()\\` for sub-routes within the Group. Panics on error.\n\n```go\nfunc (g *Group) PATCH(path string, h HandlerFunc, m ...MiddlewareFunc) RouteInfo\n```\nPATCH implements \\`Echo#PATCH()\\` for sub-routes within the Group. Panics on error.\n\n```go\nfunc (g *Group) POST(path string, h HandlerFunc, m ...MiddlewareFunc) RouteInfo\n```\nPOST implements \\`Echo#POST()\\` for sub-routes within the Group. Panics on error.\n\n```go\nfunc (g *Group) PUT(path string, h HandlerFunc, m ...MiddlewareFunc) RouteInfo\n```\nPUT implements \\`Echo#PUT()\\` for sub-routes within the Group. Panics on error.\n\n```go\nfunc (g *Group) QUERY(path string, h HandlerFunc, m ...MiddlewareFunc) RouteInfo\n```\nQUERY implements \\`Echo#QUERY()\\` for sub-routes within the Group. Panics on error.\n\n```go\nfunc (g *Group) RouteNotFound(path string, h HandlerFunc, m ...MiddlewareFunc) RouteInfo\n```\nRouteNotFound implements \\`Echo#RouteNotFound()\\` for sub-routes within the Group.\n\nImportant! When the group has middlewares, each \\`Group#Use()\\` call (re)registers catch-all NotFound routes for the group prefix and prefix + \\`/\\*\\` with the group middlewares, unless the Echo-wide \\`Config.NoGroupAutoRegister404Routes\\` is set. \\`Echo#Group()\\` and \\`Group#Group()\\` make this call when the new group has own or inherited middlewares. For the same route path the last registered NotFound route wins, and it runs only the group middlewares it was registered with: these catch-all routes replace handlers registered earlier for those paths (by any group or by Echo), and a handler registered later replaces them. Register custom ones on this group after the last such call for its prefix to keep its middlewares. On a Router that does not allow overwriting routes this panics; use the router-wide \\`RouterConfig.NotFoundHandler\\` there, or set \\`Config.NoGroupAutoRegister404Routes\\` and register both paths yourself on the group whose middlewares should run for them.\n\nExample: \\`g.RouteNotFound(\"/\\*\", func(c \\*echo.Context) error { return c.NoContent(http.StatusNotFound) })\\`\n\n```go\nfunc (g *Group) Static(pathPrefix, fsRoot string, middleware ...MiddlewareFunc) RouteInfo\n```\nStatic implements \\`Echo#Static()\\` for sub-routes within the Group.\n\n```go\nfunc (g *Group) StaticFS(pathPrefix string, filesystem fs.FS, middleware ...MiddlewareFunc) RouteInfo\n```\nStaticFS implements \\`Echo#StaticFS()\\` for sub-routes within the Group.\n\nWhen dealing with \\`embed.FS\\` use \\`fs := echo.MustSubFS(fs, \"rootDirectory\") to create sub fs which uses necessary prefix for directory path. This is necessary as \\`//go:embed assets/images\\` embeds files with paths including \\`assets/images\\` as their prefix.\n\n```go\nfunc (g *Group) TRACE(path string, h HandlerFunc, m ...MiddlewareFunc) RouteInfo\n```\nTRACE implements \\`Echo#TRACE()\\` for sub-routes within the Group. Panics on error.\n\n```go\nfunc (g *Group) Use(middleware ...MiddlewareFunc)\n```\nUse implements \\`Echo#Use()\\` for sub-routes within the Group.\n\nImportant! Group middlewares are executed in case there was no exact route match as by default Group registers \\`/\\*\\` NotFound routes for itself. If this kind of behavior is not needed, then create an Echo instance with the \\` noAutoRegisterRoutes \\` flag set to true. Example \\`echo.NewWithConfig(echo.Config{NoGroupAutoRegister404Routes: true})\\`.\n\nGroup middleware runs before the middleware of the route that matched, including routes of nested groups. A group middleware that answers requests itself, such as middleware.Static, is therefore not protected by guards on those routes. Use Group#Static to serve files behind such guards.\n\n```go\ntype HTTPError struct {\n\t// Code is status code for HTTP response\n\tCode    int    `json:\"-\"`\n\tMessage string `json:\"message\"`\n\t// contains filtered or unexported fields\n}\n```\nHTTPError represents an error that occurred while handling a request.\n\n```go\nfunc NewHTTPError(code int, message string) *HTTPError\n```\nNewHTTPError creates a new instance of HTTPError\n\n```go\nfunc (he *HTTPError) Error() string\n```\nError makes it compatible with the \\` error \\` interface.\n\n```go\nfunc (he *HTTPError) StatusCode() int\n```\nStatusCode returns status code for HTTP response\n\n```go\nfunc (he *HTTPError) Unwrap() error\n```\n\n```go\nfunc (he HTTPError) Wrap(err error) error\n```\nWrap returns a new HTTPError with given errors wrapped inside\n\n```go\ntype HTTPErrorHandler func(c *Context, err error)\n```\nHTTPErrorHandler is a centralized HTTP error handler.\n\n```go\nfunc DefaultHTTPErrorHandler(exposeError bool) HTTPErrorHandler\n```\nDefaultHTTPErrorHandler creates new default HTTP error handler implementation. It sends a JSON response with status code. \\`exposeError\\` parameter decides if returned message will contain also error message or not\n\nNote: DefaultHTTPErrorHandler does not log errors. Use middleware for it if errors need to be logged (separately) Note: In case errors happens in middleware call-chain that is returning from handler (which did not return an error). When handler has already sent response (ala c.JSON()) and there is error in middleware that is returning from handler. Then the error that global error handler received will be ignored because we have already \"committed\" the response and status code header has been sent to the client.\n\n```go\nfunc ProblemDetailsHTTPErrorHandler(exposeError bool) HTTPErrorHandler\n```\nProblemDetailsHTTPErrorHandler creates a new HTTP error handler that converts every error into a RFC 9457 (Problem Details for HTTP APIs) response and sends it with \\`application/problem+json\\` content type. \\`exposeError\\` parameter decides if the returned problem detail will contain the underlying error message for errors that are not \\*HTTPError or do not implement ProblemErrorer.\n\nPrecedence used to build the response for a given error:\n\n 1. If err (or any error wrapped by it) is a \\*ProblemError, it is used as-is.\n 2. Else if err (or any error wrapped by it) implements ProblemErrorer, ProblemError() is used.\n 3. Else a \\*ProblemError is built from err's HTTPStatusCoder status code (defaulting to 500). For \\*HTTPError, Detail is set to its Message, further extended with the wrapped error's message when exposeError is true. For any other error, Detail is only populated (with err.Error()) when exposeError is true.\n\nAny zero-value Type, Title or Status field is defaulted to \"about:blank\", the status text of Status, and 500 respectively.\n\nNote: ProblemDetailsHTTPErrorHandler does not log errors. Use middleware for it if errors need to be logged (separately).\n\n```go\ntype HTTPStatusCoder interface {\n\tStatusCode() int\n}\n```\nHTTPStatusCoder is an interface that errors can implement to produce status code for HTTP response\n\n```go\ntype HandlerFunc func(c *Context) error\n```\nHandlerFunc defines a function to serve HTTP requests.\n\n```go\nfunc StaticDirectoryHandler(fileSystem fs.FS, disablePathUnescaping bool) HandlerFunc\n```\nStaticDirectoryHandler creates handler function to serve files from provided file system When disablePathUnescaping is set then file name from path is not unescaped and is served as is.\n\nNote: when disablePathUnescaping=false, the handler decodes the wildcard param before serving. If route guards (e.g. e.GET(\"/admin/\\*\", forbidden)) are used to restrict parts of the filesystem, an encoded separator (%2F) or encoded dot-dot (%2E%2E) in the URL can resolve to a path that the router never matched against the guard route. Enabling RouterConfig.UseEscapedPathForMatching does NOT fix this — it changes which path the router uses for matching but still lets path.Clean resolve \"..\" segments into a guarded directory. Do not rely on route guards alone to restrict a filesystem served by this handler. See [https://github.com/labstack/echo/security/advisories/GHSA-vfp3-v2gw-7wfq](https://github.com/labstack/echo/security/advisories/GHSA-vfp3-v2gw-7wfq)\n\n```go\nfunc StaticFileHandler(file string, filesystem fs.FS) HandlerFunc\n```\nStaticFileHandler creates handler function to serve file from provided file system.\n\nAvoid using the leading \\`/\\` slash as most of the Go standard library fs.FS implementations require relative paths for file operations.\n\n```go\nfunc WrapHandler(h http.Handler) HandlerFunc\n```\nWrapHandler wraps \\`http.Handler\\` into \\`echo.HandlerFunc\\`.\n\n```go\ntype IPExtractor func(*http.Request) string\n```\nIPExtractor is a function to extract IP addr from http.Request. Set appropriate one to Echo#IPExtractor. See [https://echo.labstack.com/guide/ip-address](https://echo.labstack.com/guide/ip-address) for more details.\n\n```go\nfunc ExtractIPDirect() IPExtractor\n```\nExtractIPDirect extracts an IP address using an actual IP address. Use this if your server faces to internet directly (i.e.: uses no proxy).\n\n```go\nfunc ExtractIPFromRealIPHeader(options ...TrustOption) IPExtractor\n```\nExtractIPFromRealIPHeader extracts IP address using \\`x-real-ip\\` header. Use this if you put proxy which uses this header.\n\n```go\nfunc ExtractIPFromXFFHeader(options ...TrustOption) IPExtractor\n```\nExtractIPFromXFFHeader extracts IP address using \\`x-forwarded-for\\` header. Use this if you put proxy which uses this header. This returns nearest untrustable IP. If all IPs are trustable, returns furthest one (i.e.: XFF\\[0]).\n\n```go\nfunc LegacyIPExtractor() IPExtractor\n```\nLegacyIPExtractor returns an IPExtractor that derives the client IP address from common proxy headers, falling back to the request's remote address.\n\nResolution order:\n\n 1. X-Forwarded-For: returns the first IP in the comma-separated list. If multiple values are present, only the left-most (original client) is used. Surrounding brackets (for IPv6) are stripped.\n 2. X-Real-IP: used if X-Forwarded-For is absent. Surrounding brackets (for IPv6) are stripped.\n 3. req.RemoteAddr: used as a fallback; the host portion is extracted via net.SplitHostPort.\n\nNotes:\n\n  - No validation is performed on header values.\n  - This function trusts headers as-is and is therefore not safe against spoofing unless the application is behind a trusted proxy that is configured to strip/replace/modify headers correctly.\n\nUse ExtractIPFromXFFHeader or ExtractIPFromRealIPHeader instead of LegacyIPExtractor.\n\n```go\ntype JSONSerializer interface {\n\tSerialize(c *Context, target any, indent string) error\n\tDeserialize(c *Context, target any) error\n}\n```\nJSONSerializer is the interface that encodes and decodes JSON to and from interfaces.\n\n```go\ntype MiddlewareConfigurator interface {\n\tToMiddleware() (MiddlewareFunc, error)\n}\n```\nMiddlewareConfigurator defines interface for creating middleware handlers with possibility to return configuration errors instead of panicking.\n\n```go\ntype MiddlewareFunc func(next HandlerFunc) HandlerFunc\n```\nMiddlewareFunc defines a function to process middleware.\n\n```go\nfunc WrapMiddleware(m func(http.Handler) http.Handler) MiddlewareFunc\n```\nWrapMiddleware wraps \\`func(http.Handler) http.Handler\\` into \\`echo.MiddlewareFunc\\`\n\n```go\ntype PathValue struct {\n\tName  string\n\tValue string\n}\n```\nPathValue is tuple pf path parameter name and its value in request path\n\n```go\ntype PathValues []PathValue\n```\nPathValues is collections of PathValue instances with various helper methods\n\n```go\nfunc (p PathValues) Get(name string) (string, bool)\n```\nGet returns path parameter value for given name or false.\n\n```go\nfunc (p PathValues) GetOr(name string, defaultValue string) string\n```\nGetOr returns path parameter value for given name or default value if the name does not exist.\n\n```go\ntype ProblemError struct {\n\t// Type is a URI reference that identifies the problem type. Defaults to \"about:blank\"\n\t// when empty, which means the problem is the HTTP status code itself.\n\tType string `json:\"type\"`\n\t// Title is a short, human-readable summary of the problem type. Defaults to the status\n\t// text of Status when empty.\n\tTitle string `json:\"title\"`\n\t// Status is the HTTP status code for this occurrence of the problem.\n\tStatus int `json:\"status\"`\n\t// Detail is a human-readable explanation specific to this occurrence of the problem.\n\tDetail string `json:\"detail,omitempty\"`\n\t// Instance is a URI reference that identifies the specific occurrence of the problem.\n\tInstance string `json:\"instance,omitempty\"`\n}\n```\nProblemError represents a \"problem detail\" as defined in RFC 9457 (Problem Details for HTTP APIs). [https://www.rfc-editor.org/rfc/rfc9457](https://www.rfc-editor.org/rfc/rfc9457)\n\n```go\nfunc (pe *ProblemError) Error() string\n```\nError makes ProblemError compatible with the \\`error\\` interface.\n\n```go\nfunc (pe *ProblemError) StatusCode() int\n```\nStatusCode returns status code for HTTP response, implementing HTTPStatusCoder interface.\n\n```go\ntype ProblemErrorer interface {\n\tProblemError() *ProblemError\n}\n```\nProblemErrorer is the interface that custom error types can implement so they can be converted into a \\*ProblemError by ProblemDetailsHTTPErrorHandler.\n\n```go\ntype Renderer interface {\n\tRender(c *Context, w io.Writer, templateName string, data any) error\n}\n```\nRenderer is the interface that wraps the Render function.\n\n```go\ntype Response struct {\n\thttp.ResponseWriter\n\n\tStatus    int\n\tSize      int64\n\tCommitted bool\n\t// contains filtered or unexported fields\n}\n```\nResponse wraps an http.ResponseWriter and implements its interface to be used by an HTTP handler to construct an HTTP response. See: [https://golang.org/pkg/net/http/#ResponseWriter](https://golang.org/pkg/net/http/#ResponseWriter)\n\n```go\nfunc NewResponse(w http.ResponseWriter, logger *slog.Logger) (r *Response)\n```\nNewResponse creates a new instance of Response.\n\n```go\nfunc ResolveResponseStatus(rw http.ResponseWriter, err error) (resp *Response, status int)\n```\nResolveResponseStatus returns the Response and HTTP status code that should be (or has been) sent for rw, given an optional error.\n\nThis function is useful for middleware and handlers that need to figure out the HTTP status code to return based on the error that occurred or what was set in the response.\n\nPrecedence rules:\n\n 1. If the response has already been committed, the committed status wins (err is ignored).\n 2. Otherwise, start with 200 OK (net/http default if WriteHeader is never called).\n 3. If the response has a non-zero suggested status, use it.\n 4. If err != nil, it overrides the suggested status: - StatusCode(err) if non-zero - otherwise 500 Internal Server Error.\n\n```go\nfunc UnwrapResponse(rw http.ResponseWriter) (*Response, error)\n```\nUnwrapResponse unwraps given ResponseWriter to return contexts original Echo Response. rw has to implement following method \\`Unwrap() http.ResponseWriter\\`\n\n```go\nfunc (r *Response) After(fn func())\n```\nAfter registers a function which is called just after the response is written.\n\n```go\nfunc (r *Response) Before(fn func())\n```\nBefore registers a function which is called just before the response (status) is written.\n\n```go\nfunc (r *Response) Flush()\n```\nFlush implements the http.Flusher interface to allow an HTTP handler to flush buffered data to the client. See [http.Flusher](/net/http#Flusher)([https://golang.org/pkg/net/http/#Flusher](https://golang.org/pkg/net/http/#Flusher))\n\n```go\nfunc (r *Response) Hijack() (net.Conn, *bufio.ReadWriter, error)\n```\nHijack implements the http.Hijacker interface to allow an HTTP handler to take over the connection. This method is relevant to Websocket connection upgrades, proxis, and other advanced use cases. See [http.Hijacker](/net/http#Hijacker)([https://golang.org/pkg/net/http/#Hijacker](https://golang.org/pkg/net/http/#Hijacker))\n\n```go\nfunc (r *Response) Unwrap() http.ResponseWriter\n```\nUnwrap returns the original http.ResponseWriter. ResponseController can be used to access the original http.ResponseWriter. See \\[[https://go.dev/blog/go1.20](https://go.dev/blog/go1.20)]\n\n```go\nfunc (r *Response) Write(b []byte) (n int, err error)\n```\nWrite writes the data to the connection as part of an HTTP reply.\n\n```go\nfunc (r *Response) WriteHeader(code int)\n```\nWriteHeader sends an HTTP response header with status code. If WriteHeader is not called explicitly, the first call to Write will trigger an implicit WriteHeader(http.StatusOK). Thus explicit calls to WriteHeader are mainly used to send error codes.\n\n```go\ntype Route struct {\n\tMethod string\n\tPath   string\n\tName   string\n\n\t// HandlerFunc is a function that handles HTTP requests. This could be left nil when the Router implementation allows\n\t// fallback to default/global handlers in certain situations.\n\tHandler     HandlerFunc\n\tMiddlewares []MiddlewareFunc\n\t// contains filtered or unexported fields\n}\n```\nRoute contains information to adding/registering new route with the router. Method+Path pair uniquely identifies the Route. It is mandatory to provide Method+Path fields.\n\n```go\nfunc (r Route) ToRouteInfo(params []string) RouteInfo\n```\nToRouteInfo converts Route to RouteInfo\n\n```go\nfunc (r Route) WithPrefix(pathPrefix string, middlewares []MiddlewareFunc) Route\n```\nWithPrefix recreates Route with added group prefix and group middlewares it is grouped to.\n\n```go\ntype RouteInfo struct {\n\tName       string\n\tMethod     string\n\tPath       string\n\tParameters []string\n}\n```\nRouteInfo contains information about registered Route.\n\n```go\nfunc (r RouteInfo) Clone() RouteInfo\n```\nClone creates copy of RouteInfo\n\n```go\nfunc (r RouteInfo) Reverse(pathValues ...any) string\n```\nReverse reverses route to URL string by replacing path parameters with given params values.\n\n```go\ntype Router interface {\n\t// Add registers Routable with the Router and returns registered RouteInfo.\n\t//\n\t// Router may change Route.Path value in returned RouteInfo.Path.\n\t// Router generates RouteInfo.Parameters values from Route.Path.\n\t// Router generates RouteInfo.Name value if it is not provided.\n\tAdd(routable Route) (RouteInfo, error)\n\n\t// Remove removes route from the Router.\n\t//\n\t// Router may choose not to implement this method.\n\tRemove(method string, path string) error\n\n\t// Routes returns information about all registered routes\n\tRoutes() Routes\n\n\t// Route searches Router for matching route and applies it to the given context. In case when no matching method\n\t// was not found (405) or no matching route exists for path (404), router will return its implementation of 405/404\n\t// handler function.\n\t//\n\t// Router must populate Context during Router.Route call with:\n\t// - Context.InitializeRoute() (IMPORTANT! to reduce allocations use same slice that c.PathValues() returns)\n\t// - optionally can set additional information to Context with Context.Set()\n\tRoute(c *Context) HandlerFunc\n}\n```\nRouter is interface for routing request contexts to registered routes.\n\nContract between Echo/Context instance and the router:\n\n  - all routes should be added through methods on echo.Echo instance. Reason: Echo instance uses RouteInfo.Parameters length to allocate slice for paths parameters (see \\`Echo.contextPathParamAllocSize\\`), so Contexts are created with enough capacity.\n  - Router.Route must handle a Context whose PathValues capacity is smaller than the maximum path parameter count of its routes (for example, when a route was added after the Context was created, or not through echo.Echo).\n  - Router must populate Context during Router.Route call with:\n  - Context.InitializeRoute (IMPORTANT! to reduce allocations use same slice that c.PathValues() returns)\n  - Optionally can set additional information to Context with Context.Set\n\n```go\nfunc NewConcurrentRouter(r Router) Router\n```\nNewConcurrentRouter creates concurrency safe Router which routes can be added/removed safely even after http.Server has been started.\n\n```go\ntype RouterConfig struct {\n\t// NotFoundHandler is a handler that is executed when no route matches the request.\n\tNotFoundHandler HandlerFunc\n\n\t// MethodNotAllowedHandler is a handler that is executed when no route with exact METHOD matches the request but\n\t// there is a route with same path but different method.\n\tMethodNotAllowedHandler HandlerFunc\n\n\t// OptionsMethodHandler is a handler that is executed when an OPTIONS request is made.\n\tOptionsMethodHandler HandlerFunc\n\n\t// AllowOverwritingRoute allows overwriting existing routes. If false, then adding a route with the same method\n\t// and path will return an error.\n\tAllowOverwritingRoute bool\n\n\t// UnescapePathParamValues unescapes parameter values extracted from URL.RawPath before setting them in context.\n\t// Values extracted from the already-decoded URL.Path are not unescaped again.\n\tUnescapePathParamValues bool\n\n\t// UseEscapedPathForMatching controls which request path is used for matching.\n\t// Despite its historical name, true selects the decoded req.URL.Path.\n\t// The default (false) prefers req.URL.RawPath when present and otherwise uses req.URL.Path.\n\t// URL.RawPath is optional and is set only when the original escaping differs from the default encoding of URL.Path.\n\tUseEscapedPathForMatching bool\n\n\t// AutoHandleHEAD enables automatic handling of HTTP HEAD requests by\n\t// falling back to the corresponding GET route.\n\t//\n\t// When enabled, a HEAD request will match the same handler as GET for\n\t// the route, but the response body is suppressed in accordance with\n\t// HTTP semantics. Headers (e.g., Content-Length, Content-Type) are\n\t// preserved as if a GET request was made.\n\t//\n\t// Security considerations: the GET handler is fully executed for every\n\t// HEAD request, including all side effects:\n\t//   - State-mutating operations (DB writes, audit logs, counters) run.\n\t//   - Rate-limiting middleware consumes quota, enabling low-cost exhaustion.\n\t//   - Expensive computations run with no response body returned to the\n\t//     caller, making HEAD cheaper to abuse for DoS than GET.\n\t//   - All GET routes become enumerable via HEAD probing (200 = route\n\t//     exists, 405 = route absent).\n\t//\n\t// If route confidentiality/state-mutation is a concern, leave AutoHandleHEAD disabled\n\t// and register explicit HEAD handlers only for routes that are safe to\n\t// expose (e.g. e.HEAD(\"/public\", handler)).\n\t// You can leverage Echo.OnAddRoute callback to add HEAD routes explicitly from a single place.\n\t//\n\t// Disabled by default.\n\tAutoHandleHEAD bool\n}\n```\nRouterConfig is configuration options for (default) router\n\n```go\ntype Routes []RouteInfo\n```\nRoutes is collection of RouteInfo instances with various helper methods.\n\n```go\nfunc (r Routes) Clone() Routes\n```\nClone creates copy of Routes\n\n```go\nfunc (r Routes) FilterByMethod(method string) (Routes, error)\n```\nFilterByMethod searched for matching route info by method\n\n```go\nfunc (r Routes) FilterByName(name string) (Routes, error)\n```\nFilterByName searched for matching route info by name\n\n```go\nfunc (r Routes) FilterByPath(path string) (Routes, error)\n```\nFilterByPath searched for matching route info by path\n\n```go\nfunc (r Routes) FindByMethodPath(method string, path string) (RouteInfo, error)\n```\nFindByMethodPath searched for matching route info by method and path\n\n```go\nfunc (r Routes) Reverse(routeName string, pathValues ...any) (string, error)\n```\nReverse reverses route to URL string by replacing path parameters with given params values.\n\n```go\ntype SchemeExtractor func(*http.Request) string\n```\nSchemeExtractor is a function to determine the scheme (for example \\`http\\` or \\`https\\`) of http.Request. Set appropriate one to Echo#SchemeExtractor.\n\nWhen Echo#SchemeExtractor is not set, Context.Scheme uses ExtractSchemeFromHeaders with the default trust options.\n\n```go\nfunc ExtractSchemeDirect() SchemeExtractor\n```\nExtractSchemeDirect returns a SchemeExtractor that uses only the actual connection: \\`https\\` for TLS connections and \\`http\\` otherwise. Forwarding headers are ignored. Use this if your server faces the internet directly (i.e.: uses no proxy).\n\n```go\nfunc ExtractSchemeFromHeaders(options ...TrustOption) SchemeExtractor\n```\nExtractSchemeFromHeaders returns a SchemeExtractor that uses the \\`X-Forwarded-Proto\\`, \\`X-Forwarded-Protocol\\`, \\`X-Forwarded-Ssl\\` and \\`X-Url-Scheme\\` headers only when the request comes directly from a trusted address (http.Request.RemoteAddr). For requests from other addresses the headers are ignored and the scheme of the actual connection is used.\n\nBy default, loopback, link-local and private network addresses and unix socket peers are trusted. Use TrustOption to change this, for example TrustIPRange to trust a proxy that connects from a public address (such as a CDN or a cloud load balancer). TrustLoopback(false) also stops trusting unix socket peers.\n\nWhen \\`X-Forwarded-Proto\\` is present, the other headers are ignored, and the last value is used. The trusted proxy must therefore set (overwrite) \\`X-Forwarded-Proto\\` rather than pass through the value sent by the client.\n\nThis is the default strategy when Echo#SchemeExtractor is not set.\n\n```go\nfunc LegacySchemeExtractor() SchemeExtractor\n```\nLegacySchemeExtractor returns a SchemeExtractor that uses the forwarding headers from any client. This was the behavior of Context.Scheme before the address of the client was checked.\n\nIt is not safe against spoofing unless every request passes through a proxy that sets or removes the \\`X-Forwarded-Proto\\`, \\`X-Forwarded-Protocol\\`, \\`X-Forwarded-Ssl\\` and \\`X-Url-Scheme\\` headers. Use ExtractSchemeFromHeaders instead.\n\n```go\ntype StartConfig struct {\n\t// Address specifies the address where listener will start listening on to serve HTTP(s) requests\n\tAddress string\n\n\t// HideBanner instructs Start* method not to print banner when starting the Server.\n\tHideBanner bool\n\t// HidePort instructs Start* method not to print port when starting the Server.\n\tHidePort bool\n\n\t// CertFilesystem is filesystem is used to read `certFile` and `keyFile` when StartTLS method is called.\n\tCertFilesystem fs.FS\n\n\t// TLSConfig is used to configure TLS. If Listener is set, TLSConfig is not used to create the listener.\n\tTLSConfig *tls.Config\n\n\t// Listener is used to start server with the custom listener.\n\tListener net.Listener\n\t// ListenerNetwork is used configure on which Network listener will use.\n\t// If Listener is set, ListenerNetwork is not used.\n\tListenerNetwork string\n\t// ListenerAddrFunc will be called after listener is created and started to listen for connections. This is useful in\n\t// testing situations when server is started on random port `address = \":0\"` in that case you can get actual port where\n\t// listener is listening on.\n\tListenerAddrFunc func(addr net.Addr)\n\n\t// GracefulTimeout is timeout value (defaults to 10sec) graceful shutdown will wait for server to handle ongoing requests\n\t// before shutting down the server.\n\tGracefulTimeout time.Duration\n\t// OnShutdownError is called when graceful shutdown results an error. for example when listeners are not shut down within\n\t// given timeout\n\tOnShutdownError func(err error)\n\n\t// BeforeServeFunc is callback that is called just before server starts to serve HTTP request.\n\t// Use this callback when you want to configure http.Server different timeouts/limits/etc\n\tBeforeServeFunc func(s *http.Server) error\n}\n```\nStartConfig is for creating configured http.Server instance to start serve http(s) requests with given Echo instance\n\n```go\nfunc (sc StartConfig) Start(ctx stdContext.Context, h http.Handler) error\n```\nStart starts given Handler with HTTP(s) server.\n\n```go\nfunc (sc StartConfig) StartTLS(ctx stdContext.Context, h http.Handler, certFile, keyFile any) error\n```\nStartTLS starts given Handler with HTTPS server. If \\`certFile\\` or \\`keyFile\\` is \\`string\\` the values are treated as file paths. If \\`certFile\\` or \\`keyFile\\` is \\`\\[]byte\\` the values are treated as the certificate or key as-is.\n\n```go\ntype TemplateRenderer struct {\n\tTemplate interface {\n\t\tExecuteTemplate(wr io.Writer, name string, data any) error\n\t}\n}\n```\nTemplateRenderer is helper to ease creating renderers for \\`html/template\\` and \\`text/template\\` packages. Example usage:\n\n\t\te.Renderer = \u0026echo.TemplateRenderer{\n\t\t\tTemplate: template.Must(template.ParseGlob(\"templates/*.html\")),\n\t\t}\n\n\t  e.Renderer = \u0026echo.TemplateRenderer{\n\t\t\tTemplate: template.Must(template.New(\"hello\").Parse(\"Hello, {{.}}!\")),\n\t\t}\n\n```go\nfunc (t *TemplateRenderer) Render(c *Context, w io.Writer, name string, data any) error\n```\nRender renders the template with given data.\n\n```go\ntype TimeLayout string\n```\nTimeLayout specifies the format for parsing time values in request parameters. It can be a standard Go time layout string or one of the special Unix time layouts.\n\n```go\ntype TimeOpts struct {\n\t// Layout specifies the format for parsing time values in request parameters.\n\t// It can be a standard Go time layout string or one of the special Unix time layouts.\n\t//\n\t// Parsing layout defaults to: echo.TimeLayout(time.RFC3339Nano)\n\t// - To convert to custom layout use `echo.TimeLayout(\"2006-01-02\")`\n\t// - To convert unix timestamp (integer) to time.Time use `echo.TimeLayoutUnixTime`\n\t// - To convert unix timestamp in milliseconds to time.Time use `echo.TimeLayoutUnixTimeMilli`\n\t// - To convert unix timestamp in nanoseconds to time.Time use `echo.TimeLayoutUnixTimeNano`\n\tLayout TimeLayout\n\n\t// ParseInLocation is location used with time.ParseInLocation for layout that do not contain\n\t// timezone information to set output time in given location.\n\t// Defaults to time.UTC\n\tParseInLocation *time.Location\n\n\t// ToInLocation is location to which parsed time is converted to after parsing.\n\t// The parsed time will be converted using time.In(ToInLocation).\n\t// Defaults to time.UTC\n\tToInLocation *time.Location\n}\n```\nTimeOpts is options for parsing time.Time values\n\n```go\ntype TrustOption func(*ipChecker)\n```\nTrustOption is config for which IP address to trust\n\n```go\nfunc TrustIPRange(ipRange *net.IPNet) TrustOption\n```\nTrustIPRange add trustable IP ranges using CIDR notation.\n\n```go\nfunc TrustLinkLocal(v bool) TrustOption\n```\nTrustLinkLocal configures if you trust link-local address (default: true).\n\n```go\nfunc TrustLoopback(v bool) TrustOption\n```\nTrustLoopback configures if you trust loopback address (default: true).\n\n```go\nfunc TrustPrivateNet(v bool) TrustOption\n```\nTrustPrivateNet configures if you trust private network address (default: true).\n\n```go\ntype Validator interface {\n\tValidate(i any) error\n}\n```\nValidator is the interface that wraps the Validate function.\n\n```go\ntype ValueBinder struct {\n\t// ValueFunc is used to get single parameter (first) value from request\n\tValueFunc func(sourceParam string) string\n\t// ValuesFunc is used to get all values for parameter from request. i.e. `/api/search?ids=1\u0026ids=2`\n\tValuesFunc func(sourceParam string) []string\n\t// ErrorFunc is used to create errors. Allows you to use your own error type, that for example marshals to your specific json response\n\tErrorFunc func(sourceParam string, values []string, message string, internalError error) error\n\t// contains filtered or unexported fields\n}\n```\nValueBinder provides utility methods for binding query or path parameter to various Go built-in types\n\n```go\nfunc FormFieldBinder(c *Context) *ValueBinder\n```\nFormFieldBinder creates form field value binder For all requests, FormFieldBinder parses the raw query from the URL and uses query params as form fields\n\nFor POST, PUT, and PATCH requests, it also reads the request body, parses it as a form and uses query params as form fields. Request body parameters take precedence over URL query string values in r.Form.\n\nNB: when binding forms take note that this implementation uses standard library form parsing which parses form data from BOTH URL and BODY if content type is not MIMEMultipartForm See [https://golang.org/pkg/net/http/#Request.ParseForm](https://golang.org/pkg/net/http/#Request.ParseForm)\n\n```go\nfunc PathValuesBinder(c *Context) *ValueBinder\n```\nPathValuesBinder creates path parameter value binder\n\n```go\nfunc QueryParamsBinder(c *Context) *ValueBinder\n```\nQueryParamsBinder creates query parameter value binder\n\n```go\nfunc (b *ValueBinder) BindError() error\n```\nBindError returns first seen bind error and resets/empties binder errors for further calls\n\n```go\nfunc (b *ValueBinder) BindErrors() []error\n```\nBindErrors returns all bind errors and resets/empties binder errors for further calls\n\n```go\nfunc (b *ValueBinder) BindUnmarshaler(sourceParam string, dest BindUnmarshaler) *ValueBinder\n```\nBindUnmarshaler binds parameter to destination implementing BindUnmarshaler interface\n\n```go\nfunc (b *ValueBinder) BindWithDelimiter(sourceParam string, dest any, delimiter string) *ValueBinder\n```\nBindWithDelimiter binds parameter to destination by suitable conversion function. Delimiter is used before conversion to split parameter value to separate values\n\n```go\nfunc (b *ValueBinder) Bool(sourceParam string, dest *bool) *ValueBinder\n```\nBool binds parameter to bool variable\n\n```go\nfunc (b *ValueBinder) Bools(sourceParam string, dest *[]bool) *ValueBinder\n```\nBools binds parameter values to slice of bool variables\n\n```go\nfunc (b *ValueBinder) Byte(sourceParam string, dest *byte) *ValueBinder\n```\nByte binds parameter to byte variable\n\n```go\nfunc (b *ValueBinder) CustomFunc(sourceParam string, customFunc func(values []string) []error) *ValueBinder\n```\nCustomFunc binds parameter values with Func. Func is called only when parameter values exist.\n\n```go\nfunc (b *ValueBinder) Duration(sourceParam string, dest *time.Duration) *ValueBinder\n```\nDuration binds parameter to time.Duration variable\n\n```go\nfunc (b *ValueBinder) Durations(sourceParam string, dest *[]time.Duration) *ValueBinder\n```\nDurations binds parameter values to slice of time.Duration variables\n\n```go\nfunc (b *ValueBinder) FailFast(value bool) *ValueBinder\n```\nFailFast set internal flag to indicate if binding methods will return early (without binding) when previous bind failed NB: call this method before any other binding methods as it modifies binding methods behaviour\n\n```go\nfunc (b *ValueBinder) Float32(sourceParam string, dest *float32) *ValueBinder\n```\nFloat32 binds parameter to float32 variable\n\n```go\nfunc (b *ValueBinder) Float32s(sourceParam string, dest *[]float32) *ValueBinder\n```\nFloat32s binds parameter values to slice of float32 variables\n\n```go\nfunc (b *ValueBinder) Float64(sourceParam string, dest *float64) *ValueBinder\n```\nFloat64 binds parameter to float64 variable\n\n```go\nfunc (b *ValueBinder) Float64s(sourceParam string, dest *[]float64) *ValueBinder\n```\nFloat64s binds parameter values to slice of float64 variables\n\n```go\nfunc (b *ValueBinder) Int(sourceParam string, dest *int) *ValueBinder\n```\nInt binds parameter to int variable\n\n```go\nfunc (b *ValueBinder) Int16(sourceParam string, dest *int16) *ValueBinder\n```\nInt16 binds parameter to int16 variable\n\n```go\nfunc (b *ValueBinder) Int16s(sourceParam string, dest *[]int16) *ValueBinder\n```\nInt16s binds parameter to slice of int16\n\n```go\nfunc (b *ValueBinder) Int32(sourceParam string, dest *int32) *ValueBinder\n```\nInt32 binds parameter to int32 variable\n\n```go\nfunc (b *ValueBinder) Int32s(sourceParam string, dest *[]int32) *ValueBinder\n```\nInt32s binds parameter to slice of int32\n\n```go\nfunc (b *ValueBinder) Int64(sourceParam string, dest *int64) *ValueBinder\n```\nInt64 binds parameter to int64 variable\n\n```go\nfunc (b *ValueBinder) Int64s(sourceParam string, dest *[]int64) *ValueBinder\n```\nInt64s binds parameter to slice of int64\n\n```go\nfunc (b *ValueBinder) Int8(sourceParam string, dest *int8) *ValueBinder\n```\nInt8 binds parameter to int8 variable\n\n```go\nfunc (b *ValueBinder) Int8s(sourceParam string, dest *[]int8) *ValueBinder\n```\nInt8s binds parameter to slice of int8\n\n```go\nfunc (b *ValueBinder) Ints(sourceParam string, dest *[]int) *ValueBinder\n```\nInts binds parameter to slice of int\n\n```go\nfunc (b *ValueBinder) JSONUnmarshaler(sourceParam string, dest json.Unmarshaler) *ValueBinder\n```\nJSONUnmarshaler binds parameter to destination implementing json.Unmarshaler interface\n\n```go\nfunc (b *ValueBinder) MustBindUnmarshaler(sourceParam string, dest BindUnmarshaler) *ValueBinder\n```\nMustBindUnmarshaler requires parameter value to exist to bind to destination implementing BindUnmarshaler interface. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustBindWithDelimiter(sourceParam string, dest any, delimiter string) *ValueBinder\n```\nMustBindWithDelimiter requires parameter value to exist to bind destination by suitable conversion function. Delimiter is used before conversion to split parameter value to separate values\n\n```go\nfunc (b *ValueBinder) MustBool(sourceParam string, dest *bool) *ValueBinder\n```\nMustBool requires parameter value to exist to bind to bool variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustBools(sourceParam string, dest *[]bool) *ValueBinder\n```\nMustBools requires parameter values to exist to bind to slice of bool variables. Returns error when values does not exist\n\n```go\nfunc (b *ValueBinder) MustByte(sourceParam string, dest *byte) *ValueBinder\n```\nMustByte requires parameter value to exist to bind to byte variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustCustomFunc(sourceParam string, customFunc func(values []string) []error) *ValueBinder\n```\nMustCustomFunc requires parameter values to exist to bind with Func. Returns error when value does not exist.\n\n```go\nfunc (b *ValueBinder) MustDuration(sourceParam string, dest *time.Duration) *ValueBinder\n```\nMustDuration requires parameter value to exist to bind to time.Duration variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustDurations(sourceParam string, dest *[]time.Duration) *ValueBinder\n```\nMustDurations requires parameter values to exist to bind to slice of time.Duration variables. Returns error when values does not exist\n\n```go\nfunc (b *ValueBinder) MustFloat32(sourceParam string, dest *float32) *ValueBinder\n```\nMustFloat32 requires parameter value to exist to bind to float32 variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustFloat32s(sourceParam string, dest *[]float32) *ValueBinder\n```\nMustFloat32s requires parameter values to exist to bind to slice of float32 variables. Returns error when values does not exist\n\n```go\nfunc (b *ValueBinder) MustFloat64(sourceParam string, dest *float64) *ValueBinder\n```\nMustFloat64 requires parameter value to exist to bind to float64 variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustFloat64s(sourceParam string, dest *[]float64) *ValueBinder\n```\nMustFloat64s requires parameter values to exist to bind to slice of float64 variables. Returns error when values does not exist\n\n```go\nfunc (b *ValueBinder) MustInt(sourceParam string, dest *int) *ValueBinder\n```\nMustInt requires parameter value to exist to bind to int variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustInt16(sourceParam string, dest *int16) *ValueBinder\n```\nMustInt16 requires parameter value to exist to bind to int16 variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustInt16s(sourceParam string, dest *[]int16) *ValueBinder\n```\nMustInt16s requires parameter value to exist to bind to int16 slice variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustInt32(sourceParam string, dest *int32) *ValueBinder\n```\nMustInt32 requires parameter value to exist to bind to int32 variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustInt32s(sourceParam string, dest *[]int32) *ValueBinder\n```\nMustInt32s requires parameter value to exist to bind to int32 slice variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustInt64(sourceParam string, dest *int64) *ValueBinder\n```\nMustInt64 requires parameter value to exist to bind to int64 variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustInt64s(sourceParam string, dest *[]int64) *ValueBinder\n```\nMustInt64s requires parameter value to exist to bind to int64 slice variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustInt8(sourceParam string, dest *int8) *ValueBinder\n```\nMustInt8 requires parameter value to exist to bind to int8 variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustInt8s(sourceParam string, dest *[]int8) *ValueBinder\n```\nMustInt8s requires parameter value to exist to bind to int8 slice variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustInts(sourceParam string, dest *[]int) *ValueBinder\n```\nMustInts requires parameter value to exist to bind to int slice variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustJSONUnmarshaler(sourceParam string, dest json.Unmarshaler) *ValueBinder\n```\nMustJSONUnmarshaler requires parameter value to exist to bind to destination implementing json.Unmarshaler interface. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustString(sourceParam string, dest *string) *ValueBinder\n```\nMustString requires parameter value to exist to bind to string variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustStrings(sourceParam string, dest *[]string) *ValueBinder\n```\nMustStrings requires parameter values to exist to bind to slice of string variables. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustTextUnmarshaler(sourceParam string, dest encoding.TextUnmarshaler) *ValueBinder\n```\nMustTextUnmarshaler requires parameter value to exist to bind to destination implementing encoding.TextUnmarshaler interface. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustTime(sourceParam string, dest *time.Time, layout string) *ValueBinder\n```\nMustTime requires parameter value to exist to bind to time.Time variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustTimes(sourceParam string, dest *[]time.Time, layout string) *ValueBinder\n```\nMustTimes requires parameter values to exist to bind to slice of time.Time variables. Returns error when values does not exist\n\n```go\nfunc (b *ValueBinder) MustUint(sourceParam string, dest *uint) *ValueBinder\n```\nMustUint requires parameter value to exist to bind to uint variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustUint16(sourceParam string, dest *uint16) *ValueBinder\n```\nMustUint16 requires parameter value to exist to bind to uint16 variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustUint16s(sourceParam string, dest *[]uint16) *ValueBinder\n```\nMustUint16s requires parameter value to exist to bind to uint16 slice variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustUint32(sourceParam string, dest *uint32) *ValueBinder\n```\nMustUint32 requires parameter value to exist to bind to uint32 variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustUint32s(sourceParam string, dest *[]uint32) *ValueBinder\n```\nMustUint32s requires parameter value to exist to bind to uint32 slice variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustUint64(sourceParam string, dest *uint64) *ValueBinder\n```\nMustUint64 requires parameter value to exist to bind to uint64 variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustUint64s(sourceParam string, dest *[]uint64) *ValueBinder\n```\nMustUint64s requires parameter value to exist to bind to uint64 slice variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustUint8(sourceParam string, dest *uint8) *ValueBinder\n```\nMustUint8 requires parameter value to exist to bind to uint8 variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustUint8s(sourceParam string, dest *[]uint8) *ValueBinder\n```\nMustUint8s requires parameter value to exist to bind to uint8 slice variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustUints(sourceParam string, dest *[]uint) *ValueBinder\n```\nMustUints requires parameter value to exist to bind to uint slice variable. Returns error when value does not exist\n\n```go\nfunc (b *ValueBinder) MustUnixTime(sourceParam string, dest *time.Time) *ValueBinder\n```\nMustUnixTime requires parameter value to exist to bind to time.Time variable (in local time corresponding to the given Unix time). Returns error when value does not exist.\n\nExample: 1609180603 bind to 2020-12-28T18:36:43.000000000+00:00\n\nNote:\n\n  - time.Time{} (param is empty) and time.Unix(0,0) (param = \"0\") are not equal\n\n```go\nfunc (b *ValueBinder) MustUnixTimeMilli(sourceParam string, dest *time.Time) *ValueBinder\n```\nMustUnixTimeMilli requires parameter value to exist to bind to time.Time variable (in local time corresponding to the given Unix time in millisecond precision). Returns error when value does not exist.\n\nExample: 1647184410140 bind to 2022-03-13T15:13:30.140000000+00:00\n\nNote:\n\n  - time.Time{} (param is empty) and time.Unix(0,0) (param = \"0\") are not equal\n\n```go\nfunc (b *ValueBinder) MustUnixTimeNano(sourceParam string, dest *time.Time) *ValueBinder\n```\nMustUnixTimeNano requires parameter value to exist to bind to time.Time variable (in local time corresponding to the given Unix time value in nanosecond precision). Returns error when value does not exist.\n\nExample: 1609180603123456789 binds to 2020-12-28T18:36:43.123456789+00:00 Example:          1000000000 binds to 1970-01-01T00:00:01.000000000+00:00 Example:           999999999 binds to 1970-01-01T00:00:00.999999999+00:00\n\nNote:\n\n  - time.Time{} (param is empty) and time.Unix(0,0) (param = \"0\") are not equal\n  - Javascript's Number type only has about 53 bits of precision (Number.MAX\\_SAFE\\_INTEGER = 9007199254740991). Compare it to 1609180603123456789 in example.\n\n```go\nfunc (b *ValueBinder) String(sourceParam string, dest *string) *ValueBinder\n```\nString binds parameter to string variable\n\n```go\nfunc (b *ValueBinder) Strings(sourceParam string, dest *[]string) *ValueBinder\n```\nStrings binds parameter values to slice of string\n\n```go\nfunc (b *ValueBinder) TextUnmarshaler(sourceParam string, dest encoding.TextUnmarshaler) *ValueBinder\n```\nTextUnmarshaler binds parameter to destination implementing encoding.TextUnmarshaler interface\n\n```go\nfunc (b *ValueBinder) Time(sourceParam string, dest *time.Time, layout string) *ValueBinder\n```\nTime binds parameter to time.Time variable\n\n```go\nfunc (b *ValueBinder) Times(sourceParam string, dest *[]time.Time, layout string) *ValueBinder\n```\nTimes binds parameter values to slice of time.Time variables\n\n```go\nfunc (b *ValueBinder) Uint(sourceParam string, dest *uint) *ValueBinder\n```\nUint binds parameter to uint variable\n\n```go\nfunc (b *ValueBinder) Uint16(sourceParam string, dest *uint16) *ValueBinder\n```\nUint16 binds parameter to uint16 variable\n\n```go\nfunc (b *ValueBinder) Uint16s(sourceParam string, dest *[]uint16) *ValueBinder\n```\nUint16s binds parameter to slice of uint16\n\n```go\nfunc (b *ValueBinder) Uint32(sourceParam string, dest *uint32) *ValueBinder\n```\nUint32 binds parameter to uint32 variable\n\n```go\nfunc (b *ValueBinder) Uint32s(sourceParam string, dest *[]uint32) *ValueBinder\n```\nUint32s binds parameter to slice of uint32\n\n```go\nfunc (b *ValueBinder) Uint64(sourceParam string, dest *uint64) *ValueBinder\n```\nUint64 binds parameter to uint64 variable\n\n```go\nfunc (b *ValueBinder) Uint64s(sourceParam string, dest *[]uint64) *ValueBinder\n```\nUint64s binds parameter to slice of uint64\n\n```go\nfunc (b *ValueBinder) Uint8(sourceParam string, dest *uint8) *ValueBinder\n```\nUint8 binds parameter to uint8 variable\n\n```go\nfunc (b *ValueBinder) Uint8s(sourceParam string, dest *[]uint8) *ValueBinder\n```\nUint8s binds parameter to slice of uint8\n\n```go\nfunc (b *ValueBinder) Uints(sourceParam string, dest *[]uint) *ValueBinder\n```\nUints binds parameter to slice of uint\n\n```go\nfunc (b *ValueBinder) UnixTime(sourceParam string, dest *time.Time) *ValueBinder\n```\nUnixTime binds parameter to time.Time variable (in local Time corresponding to the given Unix time).\n\nExample: 1609180603 bind to 2020-12-28T18:36:43.000000000+00:00\n\nNote:\n\n  - time.Time{} (param is empty) and time.Unix(0,0) (param = \"0\") are not equal\n\n```go\nfunc (b *ValueBinder) UnixTimeMilli(sourceParam string, dest *time.Time) *ValueBinder\n```\nUnixTimeMilli binds parameter to time.Time variable (in local time corresponding to the given Unix time in millisecond precision).\n\nExample: 1647184410140 bind to 2022-03-13T15:13:30.140000000+00:00\n\nNote:\n\n  - time.Time{} (param is empty) and time.Unix(0,0) (param = \"0\") are not equal\n\n```go\nfunc (b *ValueBinder) UnixTimeNano(sourceParam string, dest *time.Time) *ValueBinder\n```\nUnixTimeNano binds parameter to time.Time variable (in local time corresponding to the given Unix time in nanosecond precision).\n\nExample: 1609180603123456789 binds to 2020-12-28T18:36:43.123456789+00:00 Example:          1000000000 binds to 1970-01-01T00:00:01.000000000+00:00 Example:           999999999 binds to 1970-01-01T00:00:00.999999999+00:00\n\nNote:\n\n  - time.Time{} (param is empty) and time.Unix(0,0) (param = \"0\") are not equal\n  - Javascript's Number type only has about 53 bits of precision (Number.MAX\\_SAFE\\_INTEGER = 9007199254740991). Compare it to 1609180603123456789 in example.\n\n","path":"github.com/labstack/echo/v5","name":"echo","synopsis":"Package echo implements high performance, minimalist Go web framework.","isRedistributable":true}
