Skip to content

agerauer/rack-header-filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rack::HeaderFilter

Remove specific HTTP headers from Rack response.

Example Rack Usage

In your config.ru:

# remove 'X-Request-Id', 'X-Runtime' and X-Rack-Cache headers
use Rack::HeaderFilter, ['X-Request-Id', 'X-Runtime', 'X-Rack-Cache']

Exapmle Rails Usage

In your application.rb:

# remove 'X-Request-Id', 'X-Runtime' and X-Rack-Cache headers
config.middleware.insert 0, 'Rack::HeaderFilter', ['X-Request-Id', 'X-Runtime', 'X-Rack-Cache']

About

Remove specific HTTP headers from Rack response

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages