silverstripe-framework/docs/en/02_Developer_Guides/02_Controllers/06_Builtin_Middlewares.md
Aaron Carlino 6888901468
NEW: Update docs to be compliant with Gatsby site (#9314)
* First cut

* Temporarily disable composer.json for netlify build

* POC

* New recursive directory query, various refinements

* Fix flexbox

* new styled components plugin

* Apply frontmatter delimiters

* Mobile styles, animation

* Search

* Redesign, clean up

* Nuke the cache, try again

* fix file casing

* Remove production env file

* ID headers

* Move app to new repo

* Add frontmatter universally

* Hide children changelogs

* Add how to title

* New callout tags

* Revert inline code block change

* Replace note callouts

* Fix icons

* Repalce images

* Fix icon

* Fix image links

* Use proper SQL icon
2019-11-18 17:58:33 +13:00

1.9 KiB

title summary
Built-in Middleware Middleware components that come with SilverStripe Framework

Built-in Middleware

SilverStripe Framework has a number of Middleware components. You may find them in the SilverStripe\Control\Middleware namespace.

Name Description
AllowedHostsMiddleware Secures requests by only allowing a whitelist of Host values
CanonicalURLMiddleware URL normalisation and redirection
ChangeDetectionMiddleware Change detection via Etag / IfModifiedSince headers, conditionally sending a 304 not modified if possible.
ConfirmationMiddleware Checks whether user manual confirmation is required for HTTPRequest
ExecMetricMiddleware Display execution metrics in DEV mode
FlushMiddleware Triggers a call to flush() on all Flushable implementors
HTTPCacheControlMiddleware Controls HTTP response cache headers
RateLimitMiddleware Access throttling, controls HTTP Retry-After header
SessionMiddleware PHP Session initialisation
TrustedProxyMiddleware Rewrites headers that provide IP and host details from upstream proxies
URLSpecialsMiddleware Controls some of the URL special variables