garrensmith opened a new pull request #605: Add X-Couch-Exclude-Headers support
URL: https://github.com/apache/couchdb/pull/605
 
 
   ## Overview
   Adding this header allows the client to request that only Non-Essential
   or All headers are removed from the response. This will decrease the
   size of the response.
   
   The idea is to remove all headers that a non-browser client would not need. 
   I've had to leave `Server` header in otherwise Mochiweb adds its very 
lame/snarky header in its place.
   
   There are two options `Non-Essential` which removes everything except 
caching headers. And then `All` which removes everything except Content-length, 
Content-Type, Server, Date.
   
   ## Testing recommendations
   
   curl -v --header "X-Couch-Exclude-Headers: Non-Essential" 
'http://dev:5984/_all_dbs
   
   ## GitHub issue number
   This PR will be the number
   
   
   ## Checklist
   
   - [x] Code is written and works correctly;
   - [x] Changes are covered by tests;
   - [ ] Documentation reflects the changes;
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to