|
The framework supports serving static files, , error handling, advanced routing, cookie manipulation, session implementations and much more.
Here are some key features of "Connect":
Bundled packages:
· session - Provides session support
· cache - Provides memory caching
· bodyDecoder - Buffers and parses json and urlencoded request bodies (extenable)
· conditionalGet - Provides 304 "Not Modified" support
· errorHandler - Handles exceptions thrown, or passed through the stack
· format - Handles url path extensions or "formats"
· gzip - Compresses response bodies with gzip executable
· lint - Aids in middleware development
· logger - Provides common logger support, and custom log formats
· methodOverride - Provides faux HTTP method support by using the "_method" key by default
· redirect - Provides req.redirect() with "magic" urls, ex: req.redirect("back")
· compiler - Supports arbitrary static compilation of files, currently supports less and sass.
· cacheManifest - Provides cache manifest for offline apps
· jsonrpc - Provides JSON-RPC 2.0 support
· staticProvider - Serves static files
· router - Provides a feature rich routing API similar to Sinatra and Express
· cookieDecoder - Provides cookie parsing support
· pubsub - Publish subscribe messaging support
· repl - Read Evaluate Print Loop attached to "/tmp/connect.sock" for inspecting live servers
· vhost - Virtual host support
Requirements:
· Node.js
What's New in This Release: [ read full changelog ]
· Added threshold option to compress() to prevent compression of small responses.
· Added support for vendor JSON mime types in json().
· Changed static redirect to 303.
· Changed octal escape sequences for strict mode.
· Changed replace utils.uid() with uid2 lib.
Via: Connect 2.8.1
0 Comment:
Post a Comment