Blame view

node_modules/parse-headers/example.js 297 Bytes
2a09d1a4   liuqimichale   添加宜春 天水 宣化
1
2
3
4
5
6
7
8
9
10
11
  var parse = require('./parse-headers')
  
    , headers = [
          'Date: Sun, 17 Aug 2014 16:24:52 GMT'
        , 'Content-Type: text/html; charset=utf-8'
        , 'Transfer-Encoding: chunked'
        , 'X-Custom-Header: beep'
        , 'X-Custom-Header: boop'
      ].join('\n')
  
  console.log(parse(headers))