Replies: 1 comment
-
|
There are lot from fastly ecosystem. around 44 core plugins and 146 community plugin as of now. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
from rails:
Rack::SendfileSets server specific X-Sendfile header. Configure this via config.action_dispatch.x_sendfile_header option.ActionDispatch::StaticUsed to serve static files from the public directory. Disabled if config.public_file_server.enabled is false.Rack::Lock-- Sets env["rack.multithread"] flag to false and wraps the application within a Mutex.ActionDispatch::ExecutorUsed for thread safe code reloading during development.ActiveSupport::Cache::Strategy::LocalCache::Middleware-- Used for memory caching. This cache is not thread safe.Rack::RuntimeSets an X-Runtime header, containing the time (in seconds) taken to execute the request.Rack::MethodOverride-- Allows the method to be overridden if params[:_method] is set. This is the middleware which supports the PUT and DELETE HTTP method types.ActionDispatch::RequestIdMakes a unique X-Request-Id header available to the response and enables the ActionDispatch::Request#request_id method.ActionDispatch::RemoteIpChecks for IP spoofing attacks.Sprockets::Rails::QuietAssetsSuppresses logger output for asset requests.Rails::Rack::LoggerNotifies the logs that the request has begun. After the request is complete, flushes all the logs.ActionDispatch::ShowExceptionsRescues any exception returned by the application and calls an exceptions app that will wrap it in a format for the end user.ActionDispatch::DebugExceptionsResponsible for logging exceptions and showing a debugging page in case the request is local.ActionDispatch::ActionableExceptionsProvides a way to dispatch actions from Rails' error pages.ActionDispatch::ReloaderProvides prepare and cleanup callbacks, intended to assist with code reloading during development.ActionDispatch::CallbacksProvides callbacks to be executed before and after dispatching the request.ActiveRecord::Migration::CheckPendingChecks pending migrations and raises ActiveRecord::PendingMigrationError if any migrations are pending.ActionDispatch::CookiesSets cookies for the request.ActionDispatch::Session::CookieStoreResponsible for storing the session in cookies.ActionDispatch::FlashSets up the flash keys. Only available if config.action_controller.session_store is set to a value.ActionDispatch::ContentSecurityPolicy::MiddlewareProvides a DSL to configure a Content-Security-Policy header.Rack::HeadConverts HEAD requests to GET requests and serves them as so.Rack::ConditionalGetAdds support for "Conditional GET" so that server responds with nothing if the page wasn't changed.Rack::ETagAdds ETag header on all String bodies. ETags are used to validate cache.Rack::TempfileReaperCleans up tempfiles used to buffer multipart requests.from phoenix:
Plug.Static- serves static assets. Since this plug comes before the logger, serving of static assets is not loggedPhoenix.CodeReloader- a plug that enables code reloading for all entries in the web directory. It is configured directly in the Phoenix applicationPlug.RequestId- generates a unique request id for each request.Plug.Telemetry- adds instrumentation points so Phoenix can log the request path, status code and request time by default.Plug.Parsers- parses the request body when a known parser is available. By default parsers parse urlencoded, multipart and json (with jason). The request body is left untouched when the request content-type cannot be parsedPlug.MethodOverride- converts the request method to PUT, PATCH or DELETE for POST requests with a valid _method parameterPlug.Head- converts HEAD requests to GET requests and strips the response bodyPlug.Session- a plug that sets up session management. Note that fetch_session/2 must still be explicitly called before using the session as this Plug just sets up how the session is fetchedacceptsPerforms content negotiation based on the available formats.fetch_flashFetches the flash storage.put_secure_browser_headersPut headers that improve browser security.from plug:
Plug.BasicAuth- provides Basic HTTP authentication;Plug.CSRFProtection- adds Cross-Site Request Forgery protection to your application. Typically required if you are using Plug.Session;Plug.Head- converts HEAD requests to GET requests;Plug.Logger- logs requests;Plug.MethodOverride- overrides a request method with one specified in the request parameters;Plug.Parsers- responsible for parsing the request body given its content-type;Plug.RequestId- sets up a request ID to be used in logs;Plug.RewriteOn- rewrite the request's host/port/protocol from x-forwarded-* headers;Plug.Session- handles session management and storage;Plug.SSL- enforces requests through SSL;Plug.Static- serves static files;Plug.Telemetry- instruments the plug pipeline with :telemetry events;from express
body-parser- previous bodyParser, json, and urlencoded. You may also be interested in:compressionconnect-timeoutcookie-parsercookie-sessioncsurferrorhandlerexpress-sessionmethod-overridemorganloggerresponse-timeserve-faviconserve-staticvhostBeta Was this translation helpful? Give feedback.
All reactions