cnnlabs / cnn-hapi

CNN Hapi
10 stars 4 forks source link

Feature/custom headers #30

Closed adslaton closed 8 years ago

adslaton commented 8 years ago

Why

Add the ability set custom headers

Testing

  1. run PORT=5000 node example/app.js
  2. then run curl -I localhost:5000
  3. output similar to below should be seen as the custom app is setting connection: close
HTTP/1.1 200 OK
surrogate-control: max-age=60, stale-while-revalidate=10, stale-if-error=6400
cache-control: 10
connection: close
content-type: text/html; charset=utf-8
Date: Wed, 10 Aug 2016 13:23:34 GMT