🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

sinatra-helpers-http-vary

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sinatra-helpers-http-vary

0.1.0
Rubygems
Version published
Maintainers
1
Created
Source

Sinatra helpers to set the HTTP "Vary" header.

See RFC 2616 (HTTP/1.1): Vary

Author: Philipp Kempgen, http://kempgen.net

Usage

Include the module in your Sinatra application:

helpers ::Sinatra::Helpers::HTTP::Vary

Example:

vary! 'Accept'
vary! 'Accept-Language'
# headers['Vary'] is now "Accept, Accept-Language"

Example:

vary! '*'
# headers['Vary'] is now "*"

Example:

vary! '*'
vary! 'Accept-Language'
# headers['Vary'] is now "*"

Example:

vary! 'Accept-Language'
vary! '*'
# headers['Vary'] is now "*"

FAQs

Package last updated on 16 Apr 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts